| Package | away3d.core.math |
| Class | public final class Quaternion |
| Inheritance | Quaternion Object |
| Property | Defined By | ||
|---|---|---|---|
| magnitude : Number [read-only]
Returns the magnitude of the quaternion object. | Quaternion | ||
| w : Number
The w value of the quatertion. | Quaternion | ||
| x : Number
The x value of the quatertion. | Quaternion | ||
| y : Number
The y value of the quatertion. | Quaternion | ||
| z : Number
The z value of the quatertion. | Quaternion | ||
| Method | Defined By | ||
|---|---|---|---|
axis2quaternion(x:Number, y:Number, z:Number, angle:Number):void
Fills the quaternion object with values representing the given rotation around a vector. | Quaternion | ||
euler2quaternion(ax:Number, ay:Number, az:Number):void
Fills the quaternion object with values representing the given euler rotation. | Quaternion | ||
Fills the quaternion object with the result from a multipication of two quaternion objects. | Quaternion | ||
normalize(val:Number = 1):void
Normalises the quaternion object. | Quaternion | ||
toString():String
Used to trace the values of a quaternion. | Quaternion | ||
| magnitude | property |
magnitude:Number [read-only] Returns the magnitude of the quaternion object.
public function get magnitude():Number| w | property |
public var w:NumberThe w value of the quatertion.
| x | property |
public var x:NumberThe x value of the quatertion.
| y | property |
public var y:NumberThe y value of the quatertion.
| z | property |
public var z:NumberThe z value of the quatertion.
| axis2quaternion | () | method |
public function axis2quaternion(x:Number, y:Number, z:Number, angle:Number):voidFills the quaternion object with values representing the given rotation around a vector.
Parameters
x:Number — The x value of the rotation vector.
| |
y:Number — The y value of the rotation vector.
| |
z:Number — The z value of the rotation vector.
| |
angle:Number — The angle in radians of the rotation.
|
| euler2quaternion | () | method |
public function euler2quaternion(ax:Number, ay:Number, az:Number):voidFills the quaternion object with values representing the given euler rotation.
Parameters
ax:Number — The angle in radians of the rotation around the x axis.
| |
ay:Number — The angle in radians of the rotation around the y axis.
| |
az:Number — The angle in radians of the rotation around the z axis.
|
| multiply | () | method |
public function multiply(qa:Quaternion, qb:Quaternion):voidFills the quaternion object with the result from a multipication of two quaternion objects.
Parameters
qa:Quaternion — The first quaternion in the multipication.
| |
qb:Quaternion — The second quaternion in the multipication.
|
| normalize | () | method |
public function normalize(val:Number = 1):voidNormalises the quaternion object.
Parameters
val:Number (default = 1) |
| toString | () | method |
public function toString():StringUsed to trace the values of a quaternion.
ReturnsString — A string representation of the quaternion object.
|