Public Member Functions

override bool Equals (object obj)
 
bool Equals (Quaternion q)
 
HPS.Quaternion Exp ()
 
override int GetHashCode ()
 
HPS.Quaternion Lerp (HPS.Quaternion in_right, float in_fraction)
 
HPS.Quaternion Log ()
 
float Norm ()
 
HPS.Quaternion Normalize ()
 
Quaternion (float in_w, float in_x, float in_y, float in_z)
 
Quaternion (HPS.Quaternion that)
 
HPS.Quaternion Slerp (HPS.Quaternion in_right, float in_fraction, bool in_shortest_path_only=true)
 
HPS.Quaternion Spline (HPS.Quaternion in_previous, HPS.Quaternion in_next)
 
HPS.Quaternion Squad (HPS.Quaternion in_right, HPS.Quaternion in_control1, HPS.Quaternion in_control2, float in_fraction)
 

Static Public Member Functions

static Quaternion ComputeRotation (float in_degrees, HPS.Vector in_axis)
 
static Quaternion ComputeRotation (float in_x, float in_y, float in_z)
 
static bool operator!= (Quaternion a, Quaternion b)
 
static Quaternion operator* (Quaternion q1, Quaternion q2)
 
static Quaternion operator* (Quaternion q, float s)
 
static Quaternion operator* (float s, Quaternion q)
 
static Quaternion operator+ (Quaternion q1, Quaternion q2)
 
static Quaternion operator- (Quaternion q1, Quaternion q2)
 
static Quaternion operator/ (Quaternion q, float s)
 
static bool operator== (Quaternion a, Quaternion b)
 

Public Attributes

float w
 
float x
 
float y
 
float z
 

Member Function Documentation

◆ ComputeRotation() [1/2]

static Quaternion HPS.Quaternion.ComputeRotation ( float  in_degrees,
HPS.Vector  in_axis 
)
inlinestatic

Computes a quaternion from a rotation about an axis.

Parameters
in_degreesThe angle in degrees to rotate.
in_axisThe axis to rotate about.
Returns
The resulting Quaternion object.

◆ ComputeRotation() [2/2]

static Quaternion HPS.Quaternion.ComputeRotation ( float  in_x,
float  in_y,
float  in_z 
)
inlinestatic

Computes a quaternion from a rotation around the primary axes.

Parameters
in_xThe number of degrees to rotate around the x-axis.
in_yThe number of degrees to rotate around the y-axis.
in_zThe number of degrees to rotate around the z-axis.
Returns
The resulting Quaternion object.

The documentation for this struct was generated from the following file:
  • internals/hps_core/source/cs/HPS.Quaternion.cs