Property | Defined by | ||
---|---|---|---|
modulo : Number [read-only]
Modulo.
| Quaternion | ||
w : Number | Quaternion | ||
x : Number | Quaternion | ||
y : Number | Quaternion | ||
z : Number | Quaternion |
Method | Defined by | ||
---|---|---|---|
Quaternion(x:Number = 0, y:Number = 0, z:Number = 0, w:Number = 1)
constructor.
| Quaternion | ||
[static]
Conjugate.
| Quaternion | ||
createFromAxisAngle(x:Number, y:Number, z:Number, angle:Number):Quaternion
[static]
Creates a Quaternion from a axis and a angle.
| Quaternion | ||
createFromEuler(ax:Number, ay:Number, az:Number, useDegrees:Boolean = false):Quaternion
[static]
Creates a Quaternion from Euler angles.
| Quaternion | ||
[static]
Creates a Quaternion from a matrix.
| Quaternion | ||
[static]
Creates a Quaternion from a orthonormal matrix.
| Quaternion | ||
[static]
Dot product.
| Quaternion | ||
mult(b:Quaternion):void
Multiply by another Quaternion.
| Quaternion | ||
[static]
Multiply.
| Quaternion | ||
normalize():void
Normalize.
| Quaternion | ||
[static]
SLERP (Spherical Linear intERPolation).
| Quaternion | ||
Gets the matrix representation of this Quaternion.
| Quaternion |
Constant | Defined by | ||
---|---|---|---|
DEGTORAD : Number = 0.017453292519943295 [static]
| Quaternion | ||
EPSILON : Number = 0.000001 [static]
| Quaternion | ||
RADTODEG : Number = 57.29577951308232 [static]
| Quaternion |
modulo | property |
modulo:Number
[read-only]Modulo.
Implementation public function get modulo():Number
w | property |
public var w:Number
x | property |
public var x:Number
y | property |
public var y:Number
z | property |
public var z:Number
Quaternion | () | constructor |
public function Quaternion(x:Number = 0, y:Number = 0, z:Number = 0, w:Number = 1)
constructor.
Parametersx:Number (default = 0 )
|
|
y:Number (default = 0 )
|
|
z:Number (default = 0 )
|
|
w:Number (default = 1 )
|
conjugate | () | method |
public static function conjugate(a:Quaternion):Quaternion
Conjugate.
Parametersa:Quaternion |
Quaternion |
createFromAxisAngle | () | method |
public static function createFromAxisAngle(x:Number, y:Number, z:Number, angle:Number):Quaternion
Creates a Quaternion from a axis and a angle.
Parametersx:Number — X-axis
|
|
y:Number — Y-axis
|
|
z:Number — Z-axis
|
|
angle:Number — angle in radians.
|
Quaternion |
createFromEuler | () | method |
public static function createFromEuler(ax:Number, ay:Number, az:Number, useDegrees:Boolean = false):Quaternion
Creates a Quaternion from Euler angles.
Parametersax:Number — X-angle in radians.
|
|
ay:Number — Y-angle in radians.
|
|
az:Number — Z-angle in radians.
|
|
useDegrees:Boolean (default = false )
|
Quaternion |
createFromMatrix | () | method |
public static function createFromMatrix(matrix:Matrix3D):Quaternion
Creates a Quaternion from a matrix.
Parametersmatrix:Matrix3D — a matrix. |
Quaternion —
the created Quaternion
|
See also
createFromOrthoMatrix | () | method |
public static function createFromOrthoMatrix(m:Matrix3D):Quaternion
Creates a Quaternion from a orthonormal matrix.
Parametersm:Matrix3D — a orthonormal matrix. |
Quaternion —
the created Quaternion
|
See also
dot | () | method |
public static function dot(a:Quaternion, b:Quaternion):Number
Dot product.
Parametersa:Quaternion |
|
b:Quaternion |
Number |
mult | () | method |
public function mult(b:Quaternion):void
Multiply by another Quaternion.
Parametersb:Quaternion — The Quaternion to multiply by.
|
multiply | () | method |
public static function multiply(a:Quaternion, b:Quaternion):Quaternion
Multiply.
Parametersa:Quaternion |
|
b:Quaternion |
Quaternion |
normalize | () | method |
public function normalize():void
Normalize.
slerp | () | method |
public static function slerp(qa:Quaternion, qb:Quaternion, alpha:Number):Quaternion
SLERP (Spherical Linear intERPolation).
Parametersqa:Quaternion — start quaternion
|
|
qb:Quaternion — end quaternion
|
|
alpha:Number — a value between 0 and 1
|
Quaternion —
the interpolated quaternion.
|
toMatrix | () | method |
public function toMatrix():Matrix3D
Gets the matrix representation of this Quaternion.
ReturnsMatrix3D —
matrix.
|
See also
DEGTORAD | constant |
public static const DEGTORAD:Number = 0.017453292519943295
EPSILON | constant |
public static const EPSILON:Number = 0.000001
RADTODEG | constant |
public static const RADTODEG:Number = 57.29577951308232