What's New in Director 8.5 > Controlling the 3D World > Vector math > Vector properties

 

Vector properties

Use these properties to work with vectors:

Property

Access

Description

magnitude

Get

The magnitude of the vector. Equivalent to the length of the vector.

length

Get

The length of the vector. Equivalent to the magnitude of the vector.

[index]

Get and set

Returns the value of a vector at a specified point in an index between 1 and 3.

x

Get and set

The x component of a vector.

y

Get and set

The y component of a vector.

z

Get and set

The z component of a vector.