* (multiplication)
603
- (subtraction)
Usage
-- Lingo syntax
vector1
-
vector2
vector
-
scalar
// JavaScript syntax
vector1
-
vector2
vector
-
scalar
Description
3D vector operator; subtracts the components of
vector2
from the corresponding components
of
vector1
, or subtracts the scalar value from each of the components and returns a new vector.
vector1
-
vector2
subtracts the values of
vector2
from the corresponding components in
vector1
and returns a new vector.
vector
-
scalar
subtracts the value of the scalar from each of the components in the vector and
returns a new vector.
* (multiplication)
Usage
-- Lingo syntax
vector1
*
vector2
vector
*
scalar
transform
*
vector
// JavaScript syntax
vector1
*
vector2
vector
*
scalar
transform
*
vector
Description
3D vector operator; multiplies the components of
vector1
by the corresponding components in
vector2
, and returns the dot product, or multiplies each of the components the vector by the
scalar value and returns a new vector.
vector1
*
vector2
returns the dot product of the two vectors, which is not a new vector. This
operation is the same as
vector1
.
dotproduct
.
vector2.
vector
*
scalar
multiplies each of the components in the vector by the scalar value and returns
a new vector.
transform
*
vector
multiplies the
transform
by the
vector
and returns a new vector. The new
vector is the result of applying the positional and rotational changes defined by
transform
to the
vector
. Note that
vector
*
transform
is not supported.
See also
dotProduct()
Summary of Contents for DIRECTOR MX 2004-DIRECTOR SCRIPTING
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...