C# Class Mono.Simd.Math.Quaternionf

显示文件 Open project: mono/Mono.Simd.Math Class Usage Examples

Public Methods

Method Description
ApproxEquals ( Quaternionf quaternion, float tolerance ) : bool
Conjugate ( ) : void

Sets this quaternion to the conjugate (spatial inverse) of itself

Dot ( Quaternionf quaternion ) : float
FromAxisAngle ( Vector3f axis, float angle ) : void

Set this quaternion from a normalized axis and an angle of rotation around that axis

FromEulers ( float roll, float pitch, float yaw ) : void

Set this quaternion from roll, pitch, and yaw euler angles in radians

FromRotationMatrix ( Matrix4f m ) : void
GetAxisAngle ( Vector3f &axis, float &angle ) : void

Convert this quaternion to an angle around an axis

GetEulerAngles ( float &roll, float &pitch, float &yaw ) : void

Convert this quaternion to euler angles

GetHashCode ( ) : int
Invert ( ) : Vector4f

Conjugates and renormalizes the quaternion

IsFinite ( ) : bool
Length ( ) : float
LengthSquared ( ) : float
Negate ( ) : Vector4f
Normalize ( ) : void
Quaternionf ( Quaternionf quaternion ) : System
Quaternionf ( Vector3f vector, float scalar ) : System
Quaternionf ( Vector4f vector ) : System
Quaternionf ( float x, float y, float z, float w ) : System
Quaternionf ( Matrix4f m ) : void
Slerp ( Quaternionf quaternion, float amount ) : Quaternionf

Spherical linear interpolation between this quaternion and another

ToString ( ) : string
operator ( ) : bool

Method Details

ApproxEquals() public method

public ApproxEquals ( Quaternionf quaternion, float tolerance ) : bool
quaternion Quaternionf
tolerance float
return bool

Conjugate() public method

Sets this quaternion to the conjugate (spatial inverse) of itself
public Conjugate ( ) : void
return void

Dot() public method

public Dot ( Quaternionf quaternion ) : float
quaternion Quaternionf
return float

FromAxisAngle() public method

Set this quaternion from a normalized axis and an angle of rotation around that axis
public FromAxisAngle ( Vector3f axis, float angle ) : void
axis Vector3f Axis of rotation
angle float Angle of rotation
return void

FromEulers() public method

Set this quaternion from roll, pitch, and yaw euler angles in radians
public FromEulers ( float roll, float pitch, float yaw ) : void
roll float X angle in radians
pitch float Y angle in radians
yaw float Z angle in radians
return void

FromRotationMatrix() public method

public FromRotationMatrix ( Matrix4f m ) : void
m Matrix4f
return void

GetAxisAngle() public method

Convert this quaternion to an angle around an axis
public GetAxisAngle ( Vector3f &axis, float &angle ) : void
axis Vector3f Unit vector describing the axis
angle float Angle around the axis, in radians
return void

GetEulerAngles() public method

Convert this quaternion to euler angles
public GetEulerAngles ( float &roll, float &pitch, float &yaw ) : void
roll float X euler angle
pitch float Y euler angle
yaw float Z euler angle
return void

GetHashCode() public method

public GetHashCode ( ) : int
return int

Invert() public method

Conjugates and renormalizes the quaternion
public Invert ( ) : Vector4f
return Vector4f

IsFinite() public method

public IsFinite ( ) : bool
return bool

Length() public method

public Length ( ) : float
return float

LengthSquared() public method

public LengthSquared ( ) : float
return float

Negate() public method

public Negate ( ) : Vector4f
return Vector4f

Normalize() public method

public Normalize ( ) : void
return void

Quaternionf() public method

public Quaternionf ( Quaternionf quaternion ) : System
quaternion Quaternionf
return System

Quaternionf() public method

public Quaternionf ( Vector3f vector, float scalar ) : System
vector Vector3f
scalar float
return System

Quaternionf() public method

public Quaternionf ( Vector4f vector ) : System
vector Vector4f
return System

Quaternionf() public method

public Quaternionf ( float x, float y, float z, float w ) : System
x float
y float
z float
w float
return System

Quaternionf() public method

public Quaternionf ( Matrix4f m ) : void
m Matrix4f
return void

Slerp() public method

Spherical linear interpolation between this quaternion and another
public Slerp ( Quaternionf quaternion, float amount ) : Quaternionf
quaternion Quaternionf
amount float
return Quaternionf

ToString() public method

public ToString ( ) : string
return string

operator() public static method

public static operator ( ) : bool
return bool