Click or drag to resize

Quaternion Structure

Represents a Quaternion (single precision).

Namespace:  Fusee.Math.Core
Assembly:  Fusee.Math.Core (in Fusee.Math.Core.dll) Version: 0.7.0.0 (0.1.0.0)
Syntax
C#
public struct Quaternion : IEquatable<Quaternion>

The Quaternion type exposes the following members.

Constructors
  NameDescription
Public methodQuaternion(float3, Single)
Construct a new Quaternion from vector and w components
Public methodQuaternion(Single, Single, Single, Single)
Construct a new Quaternion
Top
Properties
  NameDescription
Public propertyLength
Gets the length (magnitude) of the quaternion.
Public propertyLengthSquared
Gets the square of the quaternion length (magnitude).
Public propertyw
Gets or sets the w component of this instance.
Public propertyx
Gets or sets the x component of this instance.
Public propertyxyz
Gets or sets an Fusee.Math.float3 with the x, y and z components of this instance.
Public propertyy
Gets or sets the y component of this instance.
Public propertyz
Gets or sets the z component of this instance.
Top
Methods
  NameDescription
Public methodStatic memberAdd(Quaternion, Quaternion)
Add two quaternions
Public methodStatic memberAdd(Quaternion, Quaternion, Quaternion)
Add two quaternions
Public methodConjugate
Convert this quaternion to its conjugate
Public methodStatic memberConjugate(Quaternion)
Get the conjugate of the given quaternion
Public methodStatic memberConjugate(Quaternion, Quaternion)
Get the conjugate of the given quaternion
Public methodStatic memberCopySign
a with the algebraic sign of b.
Public methodEquals(Object)
Compares this object instance to another object for equality.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Quaternion)
Compares this Quaternion instance to another Quaternion for equality.
Public methodStatic memberEulerToQuaternion
Convert Euler angle to Quaternion rotation.
Public methodStatic memberFromAxisAngle
Build a quaternion from the given axis and angle
Public methodGetHashCode
Provides the hash code for this object.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberInvert(Quaternion)
Get the inverse of the given quaternion
Public methodStatic memberInvert(Quaternion, Quaternion)
Get the inverse of the given quaternion
Public methodStatic memberLookRotation
Takes a float4x4 matric and returns quaternions.
Public methodStatic memberMult(Quaternion, Quaternion) Obsolete.
Multiplies two instances.
Public methodStatic memberMult(Quaternion, Quaternion, Quaternion) Obsolete.
Multiplies two instances.
Public methodStatic memberMultiply(Quaternion, Quaternion)
Multiplies two instances.
Public methodStatic memberMultiply(Quaternion, Single)
Multiplies an instance by a scalar.
Public methodStatic memberMultiply(Quaternion, Quaternion, Quaternion)
Multiplies two instances.
Public methodStatic memberMultiply(Quaternion, Single, Quaternion)
Multiplies an instance by a scalar.
Public methodNormalize
Scales the Quaternion to unit length.
Public methodStatic memberNormalize(Quaternion)
Scale the given quaternion to unit length
Public methodStatic memberNormalize(Quaternion, Quaternion)
Scale the given quaternion to unit length
Public methodStatic memberQuaternionToEuler
Convert Quaternion rotation to Euler Angles.
Public methodStatic memberQuaternionToMatrix
Convert Quaternion to rotation matrix
Public methodStatic memberSlerp
Do Spherical linear interpolation between two quaternions
Public methodStatic memberSub(Quaternion, Quaternion)
Subtracts two instances.
Public methodStatic memberSub(Quaternion, Quaternion, Quaternion)
Subtracts two instances.
Public methodToAxisAngle
Convert this instance to an axis-angle representation.
Public methodToAxisAngle(float3, Single)
Convert the current quaternion to axis angle representation
Public methodToString
Returns a System.String that represents the current Quaternion.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds two instances.
Public operatorStatic memberEquality
Compares two instances for equality.
Public operatorStatic memberInequality
Compares two instances for inequality.
Public operatorStatic memberMultiply(Single, Quaternion)
Multiplies an instance by a scalar.
Public operatorStatic memberMultiply(Quaternion, Quaternion)
Multiplies two instances.
Public operatorStatic memberMultiply(Quaternion, Single)
Multiplies an instance by a scalar.
Public operatorStatic memberSubtraction
Subtracts two instances.
Top
Fields
  NameDescription
Public fieldStatic memberIdentity
Defines the identity quaternion.
Top
See Also