C# Класс Jitter.LinearMath.JQuaternion

A Quaternion representing an orientation. Member of the math namespace, so every method has it's 'by reference' equivalent to speed up time critical math operations.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
W float
X float
Y float
Z float

Открытые методы

Метод Описание
Add ( JQuaternion quaternion1, JQuaternion quaternion2 ) : JQuaternion

Quaternions are added.

Add ( JQuaternion &quaternion1, JQuaternion &quaternion2, JQuaternion &result ) : void

Quaternions are added.

Conjugate ( JQuaternion value ) : JQuaternion
CreateFromMatrix ( Jitter.LinearMath.JMatrix matrix ) : JQuaternion

Creates a quaternion from a matrix.

CreateFromMatrix ( Jitter.LinearMath.JMatrix &matrix, JQuaternion &result ) : void

Creates a quaternion from a matrix.

CreateFromYawPitchRoll ( float yaw, float pitch, float roll, JQuaternion &result ) : void
JQuaternion ( float x, float y, float z, float w ) : System

Initializes a new instance of the JQuaternion structure.

Multiply ( JQuaternion quaternion1, JQuaternion quaternion2 ) : JQuaternion

Multiply two quaternions.

Multiply ( JQuaternion quaternion1, float scaleFactor ) : JQuaternion

Scale a quaternion

Multiply ( JQuaternion &quaternion1, JQuaternion &quaternion2, JQuaternion &result ) : void

Multiply two quaternions.

Multiply ( JQuaternion &quaternion1, float scaleFactor, JQuaternion &result ) : void

Scale a quaternion

Normalize ( ) : void

Sets the length of the quaternion to one.

Subtract ( JQuaternion quaternion1, JQuaternion quaternion2 ) : JQuaternion

Quaternions are subtracted.

Subtract ( JQuaternion &quaternion1, JQuaternion &quaternion2, JQuaternion &result ) : void

Quaternions are subtracted.

operator ( ) : JQuaternion

Multiply two quaternions.

operator ( ) : Jitter.LinearMath.JVector

Приватные методы

Метод Описание
JQuaternion ( ) : System

Описание методов

Add() публичный статический Метод

Quaternions are added.
public static Add ( JQuaternion quaternion1, JQuaternion quaternion2 ) : JQuaternion
quaternion1 JQuaternion The first quaternion.
quaternion2 JQuaternion The second quaternion.
Результат JQuaternion

Add() публичный статический Метод

Quaternions are added.
public static Add ( JQuaternion &quaternion1, JQuaternion &quaternion2, JQuaternion &result ) : void
quaternion1 JQuaternion The first quaternion.
quaternion2 JQuaternion The second quaternion.
result JQuaternion The sum of both quaternions.
Результат void

Conjugate() публичный статический Метод

public static Conjugate ( JQuaternion value ) : JQuaternion
value JQuaternion
Результат JQuaternion

CreateFromMatrix() публичный статический Метод

Creates a quaternion from a matrix.
public static CreateFromMatrix ( Jitter.LinearMath.JMatrix matrix ) : JQuaternion
matrix Jitter.LinearMath.JMatrix A matrix representing an orientation.
Результат JQuaternion

CreateFromMatrix() публичный статический Метод

Creates a quaternion from a matrix.
public static CreateFromMatrix ( Jitter.LinearMath.JMatrix &matrix, JQuaternion &result ) : void
matrix Jitter.LinearMath.JMatrix A matrix representing an orientation.
result JQuaternion JQuaternion representing an orientation.
Результат void

CreateFromYawPitchRoll() публичный статический Метод

public static CreateFromYawPitchRoll ( float yaw, float pitch, float roll, JQuaternion &result ) : void
yaw float
pitch float
roll float
result JQuaternion
Результат void

JQuaternion() публичный Метод

Initializes a new instance of the JQuaternion structure.
public JQuaternion ( float x, float y, float z, float w ) : System
x float The X component of the quaternion.
y float The Y component of the quaternion.
z float The Z component of the quaternion.
w float The W component of the quaternion.
Результат System

Multiply() публичный статический Метод

Multiply two quaternions.
public static Multiply ( JQuaternion quaternion1, JQuaternion quaternion2 ) : JQuaternion
quaternion1 JQuaternion The first quaternion.
quaternion2 JQuaternion The second quaternion.
Результат JQuaternion

Multiply() публичный статический Метод

Scale a quaternion
public static Multiply ( JQuaternion quaternion1, float scaleFactor ) : JQuaternion
quaternion1 JQuaternion The quaternion to scale.
scaleFactor float Scale factor.
Результат JQuaternion

Multiply() публичный статический Метод

Multiply two quaternions.
public static Multiply ( JQuaternion &quaternion1, JQuaternion &quaternion2, JQuaternion &result ) : void
quaternion1 JQuaternion The first quaternion.
quaternion2 JQuaternion The second quaternion.
result JQuaternion The product of both quaternions.
Результат void

Multiply() публичный статический Метод

Scale a quaternion
public static Multiply ( JQuaternion &quaternion1, float scaleFactor, JQuaternion &result ) : void
quaternion1 JQuaternion The quaternion to scale.
scaleFactor float Scale factor.
result JQuaternion The scaled quaternion.
Результат void

Normalize() публичный Метод

Sets the length of the quaternion to one.
public Normalize ( ) : void
Результат void

Subtract() публичный статический Метод

Quaternions are subtracted.
public static Subtract ( JQuaternion quaternion1, JQuaternion quaternion2 ) : JQuaternion
quaternion1 JQuaternion The first quaternion.
quaternion2 JQuaternion The second quaternion.
Результат JQuaternion

Subtract() публичный статический Метод

Quaternions are subtracted.
public static Subtract ( JQuaternion &quaternion1, JQuaternion &quaternion2, JQuaternion &result ) : void
quaternion1 JQuaternion The first quaternion.
quaternion2 JQuaternion The second quaternion.
result JQuaternion The difference of both quaternions.
Результат void

operator() публичный статический Метод

Multiply two quaternions.
public static operator ( ) : JQuaternion
Результат JQuaternion

operator() публичный статический Метод

public static operator ( ) : Jitter.LinearMath.JVector
Результат Jitter.LinearMath.JVector

Описание свойств

W публичное свойство

The W component of the quaternion.
public float W
Результат float

X публичное свойство

The X component of the quaternion.
public float X
Результат float

Y публичное свойство

The Y component of the quaternion.
public float Y
Результат float

Z публичное свойство

The Z component of the quaternion.
public float Z
Результат float