![]()
Adds the two quaternions.
Arguments:
|
code » | ||||||
![]()
Creates a clone of the given Float32 quaternion.
Arguments:
Returns: goog.vec.Quaternion.Float32
The new quaternion.
|
code » | ||||||
![]()
Creates a clone of the given Float64 quaternion.
Arguments:
Returns: goog.vec.Quaternion.Float64
The new quaternion.
|
code » | ||||||
![]()
Concatenates the two quaternions storing the result into resultQuat.
Arguments:
Returns: !goog.vec.Quaternion.AnyType
Return q so that
operations can be chained together.
|
code » | ||||||
![]()
Computes the conjugate of the quaternion in quat storing the result into
resultQuat.
Arguments:
Returns: !goog.vec.Quaternion.AnyType
Return q so that
operations can be chained together.
|
code » | ||||||
![]()
Creates a Float32 quaternion, initialized to zero.
Returns: !goog.vec.Quaternion.Float32
The new quaternion.
|
code » | ||||||
![]()
Creates a new Float32 quaternion initialized with the values from the
supplied array.
Arguments:
Returns: !goog.vec.Quaternion.Float32
The new quaternion.
|
code » | ||||||
![]()
Creates a new Float32 quaternion initialized with the supplied values.
|
code » | ||||||
![]()
Creates a Float64 quaternion, initialized to zero.
Returns: goog.vec.Quaternion.Float64
The new quaternion.
|
code » | ||||||
![]()
Creates a new Float64 quaternion initialized with the values from the
supplied array.
Arguments:
Returns: !goog.vec.Quaternion.Float64
The new quaternion.
|
code » | ||||||
![]()
Creates a new Float64 quaternion initialized with the supplied values.
|
code » | ||||||
![]()
Creates a Number quaternion, initialized to zero.
Returns: goog.vec.Quaternion.Number
The new quaternion.
|
code » | ||||||
Computes the dot (scalar) product of two quaternions.
Arguments:
Returns: number
The scalar product.
|
code » | ||||||
![]()
Generates a unit quaternion from the given angle-axis rotation pair.
The rotation axis is not required to be a unit vector, but should
have non-zero length. The angle should be specified in radians.
Arguments:
Returns: goog.vec.Quaternion.AnyType
Return q so that
operations can be chained together.
|
code » | ||||||
![]()
Generates the quaternion from the given rotation matrix.
Arguments:
Returns: !goog.vec.Quaternion.AnyType
Return q so that
operations can be chained together.
|
code » | ||||||
Returns the magnitude of the given quaternion.
Arguments:
Returns: number
The magnitude of the quaternion.
|
code » | ||||||
Returns the square magnitude of the given quaternion.
Arguments:
Returns: number
The magnitude of the quaternion.
|
code » | ||||||
![]()
Negates a quaternion, storing the result into resultQuat.
Arguments:
|
code » | ||||||
![]()
Compute the simple linear interpolation of the two quaternions q0 and q1
according to the coefficient t. The resulting quaternion is stored in
resultVec.
Arguments:
|
code » | ||||||
![]()
Normalizes the given quaternion storing the result into resultVec.
Arguments:
|
code » | ||||||
![]()
Multiplies each component of quat0 with scalar storing the product into
resultVec.
Arguments:
|
code » | ||||||
![]()
Initializes the quaternion with the given array of values.
Arguments:
Returns: !goog.vec.Quaternion.AnyType
return q so that operations can be
chained together.
|
code » | ||||||
![]()
Initializes the quaternion with the given values.
Arguments:
Returns: !goog.vec.Vec4.AnyType
return q so that operations can be
chained together.
|
code » | ||||||
![]()
Computes the spherical linear interpolated value from the given quaternions
q0 and q1 according to the coefficient t. The resulting quaternion is stored
in resultQuat.
Arguments:
Returns: goog.vec.Quaternion.AnyType
Return q so that
operations can be chained together.
|
code » | ||||||
Generates an angle-axis rotation pair from a unit quaternion.
The quaternion is assumed to be of unit length. The calculated
values are returned via the passed 'axis' object and the 'angle'
number returned by the function itself. The returned rotation axis
is a non-zero length unit vector, and the returned angle is in
radians in the range of [-PI, +PI].
Arguments:
Returns: number
angle Angle (in radians) to rotate about 'axis'.
The range of the returned angle is [-PI, +PI].
|
code » | ||||||
![]()
Generates the rotation matrix from the given quaternion.
Arguments:
Returns: !goog.vec.AnyType
Return resulting matrix so that
operations can be chained together.
|
code » |