| Package | graphics.geom |
| Class | public class Vertex |
| Inheritance | Vertex Vector3 Object |
| Property | Defined By | ||
|---|---|---|---|
![]() | length : Number [read-only]
Indicates the length of the vector. | Vector3 | |
| sx : Number
Defined the x coordinates in the screen World. | Vertex | ||
| sy : Number
Defined the y coordinates in the screen World. | Vertex | ||
| tx : Number
Defined the x coordinates in the local coordinates. | Vertex | ||
| ty : Number
Defined the y coordinates in the local coordinates. | Vertex | ||
| tz : Number
Defined the z coordinates in the local coordinates. | Vertex | ||
| wx : Number
Defined the x coordinates in the World coordinates. | Vertex | ||
| wy : Number
Defined the y coordinates in the World coordinates. | Vertex | ||
| wz : Number
Defined the z coordinates in the World coordinates. | Vertex | ||
![]() | x : Number
Defines the x coordinate. | Vector3 | |
![]() | y : Number
Defines the y coordinate. | Vector3 | |
![]() | z : Number
Defined the z coordinate. | Vector3 | |
| ZERO : Vertex [static]
Defines the Vertex object with the x, y, z properties set to zero. | Vertex | ||
| Method | Defined By | ||
|---|---|---|---|
Vertex(x:Number = 0, y:Number = 0, z:Number = 0, tx:Number, ty:Number, tz:Number)
Creates a new Vertex instance. | Vertex | ||
![]() |
Computes the addition of two vectors. | Vector3 | |
![]() | [static]
Computes the addition of two Vector3. | Vector3 | |
![]() | [static]
Returns the angle in radian between the two 3D vectors. | Vector3 | |
clone():* [override]
Returns a shallow copy of this instance. | Vertex | ||
![]() |
Computes the cross product of two Vector3s. | Vector3 | |
![]() |
Returns the dot value of the passed-in Vector3 with the current Vector3 object. | Vector3 | |
equals(o:*):Boolean [override]
Compares the specified object with this object for equality. | Vertex | ||
Returns the Vector3 representation of the transformed coordinate system of this Vertex. | Vertex | ||
Returns the Vector3 representation of this Vertex in the world coordinate. | Vertex | ||
![]() | negate():void
Sets this Vector2 with negate coordinates. | Vector3 | |
![]() | [static]
Returns the new negate Vector2 of the specified Vector2 objet. | Vector3 | |
![]() | normalize():Boolean
Normalize the vector. | Vector3 | |
![]() | perspective(distance:Number = 300):Number
Calculates and returns the perspective ratio needed to scale an object correctly. | Vector3 | |
![]() | pow(value:Number):void
Computes the power of the vector. | Vector3 | |
![]() | [static]
Computes the power of the specified Vector3. | Vector3 | |
![]() | project(perspective:Number):void
Performs a perspective projection on a 3d point. | Vector3 | |
![]() | [static]
Performs a perspective projection on a 3d point. | Vector3 | |
![]() | rotateX(angle:Number):void
Rotates the current vector object around the x-axis by a certain amount of degrees. | Vector3 | |
![]() | rotateXTrig(ca:Number, sa:Number):void
Rotates the current vector object around the x-axis by the cosine and sine of an angle. | Vector3 | |
![]() | rotateXY(a:Number, b:Number):void
Rotates the current vector object around the x and y axes by a certain amount of degrees. | Vector3 | |
![]() | rotateXYTrig(ca:Number, sa:Number, cb:Number, sb:Number):void
Rotates the current vector object around the x and y axes by the cosine and sine of an angle. | Vector3 | |
![]() |
Rotates the current vector object around the x, y and z axes by a certain amount of degrees. | Vector3 | |
![]() | rotateXYZTrig(ca:Number, sa:Number, cb:Number, sb:Number, cc:Number, sc:Number):void
Rotates the current vector object around the x, y and z axes by the cosine and sine of an angle. | Vector3 | |
![]() | rotateY(angle:Number):void
Rotates the current vector object around the y-axis by a certain amount of degrees. | Vector3 | |
![]() | rotateYTrig(ca:Number, sa:Number):void
Rotates the current vector object around the y-axis by the cosine and sine of an angle. | Vector3 | |
![]() | rotateZ(angle:Number):void
Rotates the current vector object around the z-axis by a certain amount of degrees. | Vector3 | |
![]() | rotateZTrig(ca:Number, sa:Number):void
Rotates the current vector object around the z-axis by the cosine and sine of an angle. | Vector3 | |
![]() | scale(value:Number):void
Scales the vector object with the input value. | Vector3 | |
![]() | [static]
Scales a new Vector3 object with the input value. | Vector3 | |
![]() |
Sets the specified Vector3 object with the second Vector3 object passed in argument. | Vector3 | |
![]() | squaredLength():Number
Returns the squared length of this vector. | Vector3 | |
![]() |
Computes the substraction of the current vector object with an other. | Vector3 | |
![]() | [static]
Computes the substraction of two Vector3 and creates a new Vector3. | Vector3 | |
![]() |
Swap the horizontal and vertical coordinates of two Vector2 objects. | Vector3 | |
toObject():Object [override]
Returns the Object representation of this object. | Vertex | ||
toSource(indent:int = 0):String [override]
Returns the source code string representation of the object. | Vertex | ||
toString():String [override]
Returns the string representation of the object. | Vertex | ||
| sx | property |
public var sx:NumberDefined the x coordinates in the screen World.
| sy | property |
public var sy:NumberDefined the y coordinates in the screen World.
| tx | property |
public var tx:NumberDefined the x coordinates in the local coordinates.
| ty | property |
public var ty:NumberDefined the y coordinates in the local coordinates.
| tz | property |
public var tz:NumberDefined the z coordinates in the local coordinates.
| wx | property |
public var wx:NumberDefined the x coordinates in the World coordinates.
| wy | property |
public var wy:NumberDefined the y coordinates in the World coordinates.
| wz | property |
public var wz:NumberDefined the z coordinates in the World coordinates.
| ZERO | property |
public static var ZERO:VertexDefines the Vertex object with the x, y, z properties set to zero.
| Vertex | () | Constructor |
public function Vertex(x:Number = 0, y:Number = 0, z:Number = 0, tx:Number, ty:Number, tz:Number)
Creates a new Vertex instance.
x:Number (default = 0) — the x coordinate.
| |
y:Number (default = 0) — the y coordinate.
| |
z:Number (default = 0) — the z coordinate.
| |
tx:Number (default = NaN) — (optional) the transformed x position number. If this argument is 'null' or 'undefined' the default value is x.
| |
ty:Number (default = NaN) — (optional) the transformed y position number. If this argument is 'null' or 'undefined' the default value is y.
| |
tz:Number (default = NaN) — (optional) the transformed z position number. If this argument is 'null' or 'undefined' the default value is z.
|
| clone | () | method |
override public function clone():*Returns a shallow copy of this instance.
Returns* — a shallow copy of this instance.
|
| equals | () | method |
override public function equals(o:*):BooleanCompares the specified object with this object for equality.
Parameters
o:* |
Boolean — true if the the specified object is equal with this object.
|
| getTransform | () | method |
public function getTransform():Vector3
Returns the Vector3 representation of the transformed coordinate system of this Vertex.
Vector3 — the Vector3 representation of the transformed coordinate system of this Vertex.
|
| getWorld | () | method |
public function getWorld():Vector3
Returns the Vector3 representation of this Vertex in the world coordinate.
Vector3 — the Vector3 representation of this Vertex in the world coordinate.
|
| toObject | () | method |
override public function toObject():ObjectReturns the Object representation of this object.
ReturnsObject — the Object representation of this object.
|
| toSource | () | method |
override public function toSource(indent:int = 0):StringReturns the source code string representation of the object.
Parameters
indent:int (default = 0) |
String — the source code string representation of the object.
|
| toString | () | method |
override public function toString():StringReturns the string representation of the object.
ReturnsString — the string representation of the object.
|