Abs Math - General 
MiniCAD

VectorScript Declaration:

FUNCTION   Abs
( v:REAL ) :REAL ;

Python:

def  vs.Abs(v):
   return REAL

Description:

Function Abs returns the absolute value of the specified value.

Parameters:

v Real number.



  ArcCos Math - General 
MiniCAD

VectorScript Declaration:

FUNCTION   ArcCos
( v:REAL ) :REAL ;

Python:

def  vs.ArcCos(v):
   return REAL

Description:

Function ArcCos returns the arccosine (in radians) of the specified value.

Parameters:

v Numeric value for which to find the cosine.



  ArcSin Math - General 
MiniCAD

VectorScript Declaration:

FUNCTION   ArcSin
( v:REAL ) :REAL ;

Python:

def  vs.ArcSin(v):
   return REAL

Description:

Function ArcSin returns the arc sine (in radians) of the specified value.

Parameters:

v Numeric value for which to find the sine.



  ArcTan Math - General 
MiniCAD

VectorScript Declaration:

FUNCTION   ArcTan
( v:REAL ) :REAL ;

Python:

def  vs.ArcTan(v):
   return REAL

Description:

Function ArcTan returns the arc tangent (in radians) of the specified value.

Parameters:

v Numeric value for which to find the tangent.



  Cos Math - General 
MiniCAD

VectorScript Declaration:

FUNCTION   Cos
( v:REAL ) :REAL ;

Python:

def  vs.Cos(v):
   return REAL

Description:

Function Cos returns the cosine of the specified value. The base value is assumed to represent an angle in radians.

Parameters:

v The angle for which to find the cosine.



  Deg2Rad Math - General 
MiniCAD

VectorScript Declaration:

FUNCTION   Deg2Rad
( degreeValue:REAL ) :REAL ;

Python:

def  vs.Deg2Rad(degreeValue):
   return REAL

Description:

Function Deg2Rad converts the specified value (in degrees) to radians.

Parameters:

degreeValue Value in degrees.



  Exp Math - General 
MiniCAD

VectorScript Declaration:

FUNCTION   Exp
( v:REAL ) :REAL ;

Python:

def  vs.Exp(v):
   return REAL

Description:

Function Exp returns the value of e to the x, where e is the base of the natural logarithms and x is the specified value.



  Ln Math - General 
MiniCAD

VectorScript Declaration:

FUNCTION   Ln
( v:REAL ) :REAL ;

Python:

def  vs.Ln(v):
   return REAL

Description:

Function Ln returns the natural logarithm of the specified value.

Parameters:

v Numeric value for which to find the natural logarithm.



  Max Math - General 
Vectorworks 2014

VectorScript Declaration:

FUNCTION   Max
(   val1 :REAL;
    val2 :REAL
) :REAL ;

Python:

def  vs.Max(val1, val2):
   return REAL

Description:

Returns the maximum of the two numbers.



  Min Math - General 
Vectorworks 2014

VectorScript Declaration:

FUNCTION   Min
(   val1 :REAL;
    val2 :REAL
) :REAL ;

Python:

def  vs.Min(val1, val2):
   return REAL

Description:

Returns the minimum of the two numbers.



  Rad2Deg Math - General 
MiniCAD

VectorScript Declaration:

FUNCTION   Rad2Deg
( radianValue:REAL ) :REAL ;

Python:

def  vs.Rad2Deg(radianValue):
   return REAL

Description:

Function Rad2Deg converts the specified value (in radians) to degrees.

Parameters:

radianValue Value in radians.



  Random Math - General 
VectorWorks8.0

VectorScript Declaration:

FUNCTION   Random
:REAL ;

Python:

def  vs.Random():
   return REAL

Description:

Procedure Random returns a random number between 0.0 and 1.0.



  Round Math - General 
MiniCAD

VectorScript Declaration:

FUNCTION   Round
( v:REAL ) :LONGINT ;

Python:

def  vs.Round(v):
   return LONGINT

Description:

Function Round converts the specified REAL value to a LONGINT value. The LONGINT result is the value rounded to the nearest whole number.

Parameters:

v Real value to round.



  Sin Math - General 
MiniCAD

VectorScript Declaration:

FUNCTION   Sin
( v:REAL ) :REAL ;

Python:

def  vs.Sin(v):
   return REAL

Description:

Function Sin returns the sine of the specified value. The base value is assumed to represent an angle in radians.

Parameters:

v Numeric value for which to find the sine.



  Sqr Math - General 
MiniCAD

VectorScript Declaration:

FUNCTION   Sqr
( v:REAL ) :REAL ;

Python:

def  vs.Sqr(v):
   return REAL

Description:

Function Sqr returns the square of the specified value.

Parameters:

v Value to square.



  Sqrt Math - General 
MiniCAD

VectorScript Declaration:

FUNCTION   Sqrt
( v:REAL ) :REAL ;

Python:

def  vs.Sqrt(v):
   return REAL

Description:

Function Sqrt returns the square root of the specified value.

Parameters:

v Value for which to find the square root.



  Tan Math - General 
MiniCAD

VectorScript Declaration:

FUNCTION   Tan
( v:REAL ) :REAL ;

Python:

def  vs.Tan(v):
   return REAL

Description:

Function Tan returns the tangent of the specified value.

Parameters:

v Angle, in radians.



  Trunc Math - General 
MiniCAD

VectorScript Declaration:

FUNCTION   Trunc
( v:REAL ) :LONGINT ;

Python:

def  vs.Trunc(v):
   return LONGINT

Description:

Truncates the decimal portion of the specified REAL number, returning the result as a LONGINT value.

Note that direct assignment of a REAL to a LONGINT will result in rounding the REAL to the nearest LONGINT, whereas Trunc always "rounds down" (if the number is positive).

Parameters:

v Real value to truncate.