Transforms - MACROMEDIA DIRECTOR MX-USING DIRECTOR MX Use Manual

Table of Contents

Advertisement

Command
distanceTo
(
)
vector2
duplicate()
Vector binary operations
Use these syntaxes to perform additional vector math calculations:
Operator
vector1
+vector2
vector1 -
vector2
vector1*
vector2
vector1/
vector2
vector2*scalar
vector2/scalar
transform*
vector
scalar-vector1
vector1-scalar
scalar +
vector1
vector1 +
scalar

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
transform()
526
Chapter 20
Description
Returns the distance between
vectors represent positions in the 3D world, this is the distance
between them.
A copy of the vector.
Description
Returns a new vector equaling
equaling 1 through 3.
Returns a new vector equaling
vector1 -vector2
for
Returns the product of the two vectors.
Not supported.
Returns a new vector equaling
vector2 * scalar
for
Returns a new vector equaling
vector2/scalar
.
Returns a new vector resulting from applying the positional and
transformation changes defined by
Note that vector*transform is an invalid operation.
Returns a new vector equaling
scalar-vector1
.
Returns a new vector equaling
vector1-scalar
.
Returns a new vector equaling
scalar + vector1
.
Returns a new vector equaling
vector1 + scalar
.
function to create a new
Description
Creates a new transform initialized as the identity transform. The
identity transform has no rotation and a vector position of
(0,0,0)
vector
vector2
and
vector1 +vector2
for
x
equaling 1 through 3.
x
equaling 1 through 3.
transform
vector
to
data object:
transform
Returns
. If these
Floating-point value of
distance.
A new vector object.
Returns
x
A new vector object
A new vector object
A floating-point value
0
A new vector object
A new vector object
A new vector object
.
A new vector object
A new vector object
A new vector object
A new vector object
Returns
A new transform object

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX-USING DIRECTOR MX and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx

Table of Contents