EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 603

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 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...
* (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()