vectorAt()

Synopsis

Returns the unit vector representing the local +X axis vector rotated about the +Z axis by the given number of degrees. This is equivalent to calling rotateVector() with unitX as the vector , and unitZ as the axisDirection.

Syntax

vectorAt ( angle As Number ) As Vector
Argument Type Description
angle Number The angle in degrees from the +X axis.

Example 1

X axis
Intent > vectorAt(0)
--> Vector_(1.0, 0.0, 0.0, WorldFrame())

Example 2

Vector directed 30 degrees from X axis
Intent >vectorAt(30) 
--> Vector_(0.86602540378444, 0.5, 0.0, WorldFrame())