vector()

Synopsis

Creates a vector relative to the local Frame. Note that even though the vector is created using local coordinates, it is stored using universal world coordinates, and so does not need to be transformed for use in other contexts.

Syntax

vector ( dx As Number, _
         dy As Number, _
         dz As Number ) As Vector
Argument Type Description
dx Number Local x component of the vector .
dy Number Local y component of the vector .
dz Number Local z component of the vector .

Example 1

Constructs the vector
Intent >vector(1, 0, 0) 
--> Vector_(1.0, 0.0, 0.0, WorldFrame())

Example 2

Constructs the vector
Intent >vector(0.0001, 12345.2, 1.0e10) 
--> Vector_(0.0001, 12345.2, 10000000000.0, WorldFrame())