|
Description The Vector3d class lets you manipulate three dimensional vectors. A 3d vector is a triplet of numbers that can be imagined to be coordinates or displacements along the x, y, z axes of 3d space. Method summary for the Vector3d class Property summary for the Vector3d class | Property | Description | | Vector3d.x | The coordinate or displacement along the x-axis of 3d space. | | Vector3d.y | The coordinate or displacement along the y-axis of 3d space. | | Vector3d.z | The coordinate or displacement along the z-axis of 3d space. |
Constructor for the Vector3d class Usage new Vector3d(x:Number, y:Number, z:Number) : Vector3d new Vector3d([vec3d:Vector3d]) : Vector3d Parameters x A number to be assigned to the Vector3d.x property. y A number to be assigned to the Vector3d.y property. z A number to be assigned to the Vector3d.z property. vec3d An optional Vector3d that will be copied into a new Vector3d. Defaults to the zero vector.
Returns A reference to a Vector3d object. Description Constructor; constructs a new Vector3d object from the specified parameters. Example var newVec = new Vector3d(1, 2, 3);
trace(newVec); //displays (1, 2, 3); |