| Package | graphics.geom |
| Class | public class Vector4 |
| Inheritance | Vector4 Object |
| Implements | Geometry |
| Property | Defined By | ||
|---|---|---|---|
| w : Number
Defined the w coordinate. | Vector4 | ||
| x : Number
Defines the x coordinate. | Vector4 | ||
| y : Number
Defines the y coordinate. | Vector4 | ||
| z : Number
Defined the z coordinate. | Vector4 | ||
| ZERO : Vector4 [static]
Defines the Vector4 object with the x, y, z and w properties set to zero. | Vector4 | ||
| Method | Defined By | ||
|---|---|---|---|
Vector4(x:Number = 0, y:Number = 0, z:Number = 0, w:Number = 0)
Creates a new Vector4 instance. | Vector4 | ||
Computes the addition of two Vector4 object. | Vector4 | ||
clone():*
Returns a shallow copy of this instance. | Vector4 | ||
equals(o:*):Boolean
Compares the specified object with this object for equality. | Vector4 | ||
scale(value:Number):void
Scales the vector object with the input value. | Vector4 | ||
Computes the substraction of the current Vector3 object with an other. | Vector4 | ||
toObject():Object
Returns the Object representation of this object. | Vector4 | ||
toSource(indent:int = 0):String
Returns the source code string representation of the object. | Vector4 | ||
toString():String
Returns the string representation of the object. | Vector4 | ||
| w | property |
public var w:NumberDefined the w coordinate.
| x | property |
public var x:NumberDefines the x coordinate.
| y | property |
public var y:NumberDefines the y coordinate.
| z | property |
public var z:NumberDefined the z coordinate.
| ZERO | property |
public static var ZERO:Vector4Defines the Vector4 object with the x, y, z and w properties set to zero.
| Vector4 | () | Constructor |
public function Vector4(x:Number = 0, y:Number = 0, z:Number = 0, w:Number = 0)
Creates a new Vector4 instance.
x:Number (default = 0) — the x coordinate.
| |
y:Number (default = 0) — the y coordinate.
| |
z:Number (default = 0) — the z coordinate.
| |
w:Number (default = 0) — the w coordinate.
|
| add | () | method |
public function add(v:Vector4):voidComputes the addition of two Vector4 object.
Parameters
v:Vector4 — the vector object to add.
|
| clone | () | method |
public function clone():*Returns a shallow copy of this instance.
Returns* — a shallow copy of this instance.
|
| equals | () | method |
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.
|
| scale | () | method |
public function scale(value:Number):voidScales the vector object with the input value.
Parameters
value:Number — a real number to scale the current vector object.
|
| substract | () | method |
public function substract(v:Vector4):voidComputes the substraction of the current Vector3 object with an other.
Parameters
v:Vector4 — the vector to substract.
|
| toObject | () | method |
public function toObject():ObjectReturns the Object representation of this object.
ReturnsObject — the Object representation of this object.
|
| toSource | () | method |
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 |
public function toString():StringReturns the string representation of the object.
ReturnsString — the string representation of the object.
|