vector()
Usage
-- Lingo syntax
vector()
vector(intX, intY, intZ)
// JavaScript syntax
vector();
vector(intX, intY, intZ);
Description
Top level function and data type. Describes a point in 3D space according to three parameters,
which are the specific distances from the reference point along the x-axis, y-axis, and z-axis,
respectively.
If the vector is in world space, the reference point is the world origin,
vector is in object space, the reference point is the object's position and orientation.
This method returns a vector object.
Vector values can be operated upon by the
for more information.
Parameters
Optional. An integer that specifies the x-axis point.
intX
Optional. An integer that specifies the y-axis point.
intY
Optional. An integer that specifies the z-axis point.
intZ
Example
This statement creates a vector and assigns it to the variable
-- Lingo syntax
myVector = vector(10.0, -5.0, 0.0)
// JavaScript syntax
var myVector = vector(10.0, -5.0, 0.0);
In Lingo only, this statement adds two vectors and assigns the resulting value to the
variable
thisVector
-- Lingo syntax
thisVector = vector(1.0, 0.0, 0.0) + vector(0.0, -12.5, 2.0)
version()
Usage
-- Lingo syntax
fileioObjRef.version()
// JavaScript syntax
fileioObjRef.version();
Description
Fileio method; Displays the Fileio version and build information in the Message window.
578
Chapter 12: Methods
+
:
,
,
and
operators. See their individual definitions
-
*
/
myVector
. If the
vector(0, 0, 0)
:
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers