Quaternion

There is currently no description for this class. Please help us by contributing one!

Note

There are notable differences when using this API with C#. See C# Differences for more information.

Properties

float

w

1.0

float

x

0.0

float

y

0.0

float

z

0.0

Constructors

Quaternion

Quaternion ( )

Quaternion

Quaternion ( Quaternion from )

Quaternion

Quaternion ( Vector3 arc_from, Vector3 arc_to )

Quaternion

Quaternion ( Vector3 axis, float angle )

Quaternion

Quaternion ( Basis from )

Quaternion

Quaternion ( float x, float y, float z, float w )

Methods

float

angle_to ( Quaternion to ) const

float

dot ( Quaternion with ) const

Quaternion

exp ( ) const

Quaternion

from_euler ( Vector3 euler ) static

float

get_angle ( ) const

Vector3

get_axis ( ) const

Vector3

get_euler ( int order=2 ) const

Quaternion

inverse ( ) const

bool

is_equal_approx ( Quaternion to ) const

bool

is_finite ( ) const

bool

is_normalized ( ) const

float

length ( ) const

float

length_squared ( ) const

Quaternion

log ( ) const

Quaternion

normalized ( ) const

Quaternion

slerp ( Quaternion to, float weight ) const

Quaternion

slerpni ( Quaternion to, float weight ) const

Quaternion

spherical_cubic_interpolate ( Quaternion b, Quaternion pre_a, Quaternion post_b, float weight ) const

Quaternion

spherical_cubic_interpolate_in_time ( Quaternion b, Quaternion pre_a, Quaternion post_b, float weight, float b_t, float pre_a_t, float post_b_t ) const

Operators

bool

operator != ( Quaternion right )

Quaternion

operator * ( Quaternion right )

Vector3

operator * ( Vector3 right )

Quaternion

operator * ( float right )

Quaternion

operator * ( int right )

Quaternion

operator + ( Quaternion right )

Quaternion

operator - ( Quaternion right )

Quaternion

operator / ( float right )

Quaternion

operator / ( int right )

bool

operator == ( Quaternion right )

float

operator [] ( int index )

Quaternion

operator unary+ ( )

Quaternion

operator unary- ( )


Constants

IDENTITY = Quaternion(0, 0, 0, 1)

There is currently no description for this constant. Please help us by contributing one!


Property Descriptions

float w = 1.0

There is currently no description for this property. Please help us by contributing one!


float x = 0.0

There is currently no description for this property. Please help us by contributing one!


float y = 0.0

There is currently no description for this property. Please help us by contributing one!


float z = 0.0

There is currently no description for this property. Please help us by contributing one!


Constructor Descriptions

Quaternion Quaternion ( )

There is currently no description for this constructor. Please help us by contributing one!


Quaternion Quaternion ( Quaternion from )

There is currently no description for this constructor. Please help us by contributing one!


Quaternion Quaternion ( Vector3 arc_from, Vector3 arc_to )

There is currently no description for this constructor. Please help us by contributing one!


Quaternion Quaternion ( Vector3 axis, float angle )

There is currently no description for this constructor. Please help us by contributing one!


Quaternion Quaternion ( Basis from )

There is currently no description for this constructor. Please help us by contributing one!


Quaternion Quaternion ( float x, float y, float z, float w )

There is currently no description for this constructor. Please help us by contributing one!


Method Descriptions

float angle_to ( Quaternion to ) const

There is currently no description for this method. Please help us by contributing one!


float dot ( Quaternion with ) const

There is currently no description for this method. Please help us by contributing one!


Quaternion exp ( ) const

There is currently no description for this method. Please help us by contributing one!


Quaternion from_euler ( Vector3 euler ) static

There is currently no description for this method. Please help us by contributing one!


float get_angle ( ) const

There is currently no description for this method. Please help us by contributing one!


Vector3 get_axis ( ) const

There is currently no description for this method. Please help us by contributing one!


Vector3 get_euler ( int order=2 ) const

There is currently no description for this method. Please help us by contributing one!


Quaternion inverse ( ) const

There is currently no description for this method. Please help us by contributing one!


bool is_equal_approx ( Quaternion to ) const

There is currently no description for this method. Please help us by contributing one!


bool is_finite ( ) const

There is currently no description for this method. Please help us by contributing one!


bool is_normalized ( ) const

There is currently no description for this method. Please help us by contributing one!


float length ( ) const

There is currently no description for this method. Please help us by contributing one!


float length_squared ( ) const

There is currently no description for this method. Please help us by contributing one!


Quaternion log ( ) const

There is currently no description for this method. Please help us by contributing one!


Quaternion normalized ( ) const

There is currently no description for this method. Please help us by contributing one!


Quaternion slerp ( Quaternion to, float weight ) const

There is currently no description for this method. Please help us by contributing one!


Quaternion slerpni ( Quaternion to, float weight ) const

There is currently no description for this method. Please help us by contributing one!


Quaternion spherical_cubic_interpolate ( Quaternion b, Quaternion pre_a, Quaternion post_b, float weight ) const

There is currently no description for this method. Please help us by contributing one!


Quaternion spherical_cubic_interpolate_in_time ( Quaternion b, Quaternion pre_a, Quaternion post_b, float weight, float b_t, float pre_a_t, float post_b_t ) const

There is currently no description for this method. Please help us by contributing one!


Operator Descriptions

bool operator != ( Quaternion right )

There is currently no description for this operator. Please help us by contributing one!


Quaternion operator * ( Quaternion right )

There is currently no description for this operator. Please help us by contributing one!


Vector3 operator * ( Vector3 right )

There is currently no description for this operator. Please help us by contributing one!


Quaternion operator * ( float right )

There is currently no description for this operator. Please help us by contributing one!


Quaternion operator * ( int right )

There is currently no description for this operator. Please help us by contributing one!


Quaternion operator + ( Quaternion right )

There is currently no description for this operator. Please help us by contributing one!


Quaternion operator - ( Quaternion right )

There is currently no description for this operator. Please help us by contributing one!


Quaternion operator / ( float right )

There is currently no description for this operator. Please help us by contributing one!


Quaternion operator / ( int right )

There is currently no description for this operator. Please help us by contributing one!


bool operator == ( Quaternion right )

There is currently no description for this operator. Please help us by contributing one!


float operator [] ( int index )

There is currently no description for this operator. Please help us by contributing one!


Quaternion operator unary+ ( )

There is currently no description for this operator. Please help us by contributing one!


Quaternion operator unary- ( )

There is currently no description for this operator. Please help us by contributing one!