Otter  0.9.8.91
2d Game Development Framework based on SFML.Net
 All Classes Namespaces Functions Variables Enumerations Properties
Otter.Quaternion Struct Reference

Struct for representing a Quaternion. More...

Inherits IEquatable< Quaternion >.

Public Member Functions

 Quaternion (float x, float y, float z, float w)
 
 Quaternion (Vector3 vectorPart, float scalarPart)
 
void Conjugate ()
 
override bool Equals (object obj)
 
bool Equals (Quaternion other)
 
override int GetHashCode ()
 
float Length ()
 
float LengthSquared ()
 
void Normalize ()
 
override string ToString ()
 

Static Public Member Functions

static Quaternion Add (Quaternion quaternion1, Quaternion quaternion2)
 
static void Add (ref Quaternion quaternion1, ref Quaternion quaternion2, out Quaternion result)
 
static Quaternion Concatenate (Quaternion value1, Quaternion value2)
 
static void Concatenate (ref Quaternion value1, ref Quaternion value2, out Quaternion result)
 
static Quaternion Conjugate (Quaternion value)
 
static void Conjugate (ref Quaternion value, out Quaternion result)
 
static Quaternion CreateFromAxisAngle (Vector3 axis, float angle)
 
static void CreateFromAxisAngle (ref Vector3 axis, float angle, out Quaternion result)
 
static Quaternion CreateFromRotationMatrix (Matrix matrix)
 
static void CreateFromRotationMatrix (ref Matrix matrix, out Quaternion result)
 
static Quaternion CreateFromYawPitchRoll (float yaw, float pitch, float roll)
 
static void CreateFromYawPitchRoll (float yaw, float pitch, float roll, out Quaternion result)
 
static Quaternion Divide (Quaternion quaternion1, Quaternion quaternion2)
 
static void Divide (ref Quaternion quaternion1, ref Quaternion quaternion2, out Quaternion result)
 
static float Dot (Quaternion quaternion1, Quaternion quaternion2)
 
static void Dot (ref Quaternion quaternion1, ref Quaternion quaternion2, out float result)
 
static Quaternion Inverse (Quaternion quaternion)
 
static void Inverse (ref Quaternion quaternion, out Quaternion result)
 
static Quaternion Lerp (Quaternion quaternion1, Quaternion quaternion2, float amount)
 
static void Lerp (ref Quaternion quaternion1, ref Quaternion quaternion2, float amount, out Quaternion result)
 
static Quaternion Slerp (Quaternion quaternion1, Quaternion quaternion2, float amount)
 
static void Slerp (ref Quaternion quaternion1, ref Quaternion quaternion2, float amount, out Quaternion result)
 
static Quaternion Subtract (Quaternion quaternion1, Quaternion quaternion2)
 
static void Subtract (ref Quaternion quaternion1, ref Quaternion quaternion2, out Quaternion result)
 
static Quaternion Multiply (Quaternion quaternion1, Quaternion quaternion2)
 
static Quaternion Multiply (Quaternion quaternion1, float scaleFactor)
 
static void Multiply (ref Quaternion quaternion1, float scaleFactor, out Quaternion result)
 
static void Multiply (ref Quaternion quaternion1, ref Quaternion quaternion2, out Quaternion result)
 
static Quaternion Negate (Quaternion quaternion)
 
static void Negate (ref Quaternion quaternion, out Quaternion result)
 
static Quaternion Normalize (Quaternion quaternion)
 
static void Normalize (ref Quaternion quaternion, out Quaternion result)
 
static Quaternion operator+ (Quaternion quaternion1, Quaternion quaternion2)
 
static Quaternion operator/ (Quaternion quaternion1, Quaternion quaternion2)
 
static bool operator== (Quaternion quaternion1, Quaternion quaternion2)
 
static bool operator!= (Quaternion quaternion1, Quaternion quaternion2)
 
static Quaternion operator* (Quaternion quaternion1, Quaternion quaternion2)
 
static Quaternion operator* (Quaternion quaternion1, float scaleFactor)
 
static Quaternion operator- (Quaternion quaternion1, Quaternion quaternion2)
 
static Quaternion operator- (Quaternion quaternion)
 

Public Attributes

float X
 
float Y
 
float Z
 
float W
 

Static Public Attributes

static Quaternion identity = new Quaternion(0, 0, 0, 1)
 

Properties

static Quaternion Identity [get]
 

Detailed Description

Struct for representing a Quaternion.


The documentation for this struct was generated from the following file: