Contents - Index


VectorAngle_x

 

The VectorAngle_x function requires 1 parameter, which is the name of a vector.   This function must be placed after the $Vector (or $Vector2D) directive that identifies a vector variable.

 

The function returns the angle between the positive x-direction and the vector.  The angle is returned in units of degrees or radians, depending on the setting of the unit system for angles.  See $UnitSystem.

 

Example:

 

$Vector V 

$UnitSystem deg

V=VectorAssign(1,2,3) [N]

a_x=vectorangle_x(V)

 

{Solution:

a_x=74.5 [deg]}

 

See also: VectorAngle_y

                VectorAngle_z