Contents - Index


VectorAngle_y

 

The VectorAngle_y 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 y-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_y=vectorangle_y(V)

 

{Solution:

a_y=57.69 [deg]}

 

See also: VectorAngle_x

                VectorAngle_z