EasyManua.ls Logo

MACROMEDIA DIRECTOR MX-USING DIRECTOR MX - Transforms

MACROMEDIA DIRECTOR MX-USING DIRECTOR MX
624 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 20526
Vector binary operations
Use these syntaxes to perform additional vector math calculations:
Transforms
A transform is a data object describing a model’s position, orientation, and scale in the 3D world.
Transform functions can be used to move a given vector, light, camera, or model from its current
location to a new position and/or orientation.
Transform creation function
Use the
transform() function to create a new transform data object:
distanceTo
(
vector2)
Returns the distance between vector and vector2. If these
vectors represent positions in the 3D world, this is the distance
between them.
Floating-point value of
distance.
duplicate() A copy of the vector. A new vector object.
Operator Description Returns
vector1
+vector2
Returns a new vector equaling vector1 +vector2 for x
equaling 1 through 3.
A new vector object
vector1 -
vector2
Returns a new vector equaling
vector1 -vector2 for x equaling 1 through 3.
A new vector object
vector1*
vector2
Returns the product of the two vectors. A floating-point value
vector1/
vector2
Not supported. 0
vector2*scalar
Returns a new vector equaling
vector2 * scalar for x equaling 1 through 3.
A new vector object
vector2/scalar Returns a new vector equaling
vector2/scalar.
A new vector object
transform*
vector
Returns a new vector resulting from applying the positional and
transformation changes defined by
transform to vector.
Note that vector*transform is an invalid operation.
A new vector object
scalar-vector1 Returns a new vector equaling
scalar-vector1.
A new vector object
vector1-scalar Returns a new vector equaling
vector1-scalar.
A new vector object
scalar +
vector1
Returns a new vector equaling
scalar + vector1.
A new vector object
vector1 +
scalar
Returns a new vector equaling
vector1 + scalar.
A new vector object
Function Description Returns
transform() Creates a new transform initialized as the identity transform. The
identity transform has no rotation and a vector position of
(0,0,0)
A new transform object
Command Description Returns

Table of Contents