C# Класс OpenTK.Quaterniond

Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
Identity Quaterniond
W double
WAxis Quaterniond
X double
XAxis Quaterniond
Y double
YAxis Quaterniond
Z double
ZAxis Quaterniond
Zero Quaterniond

Private Properties

Свойство Тип Описание
Mult Quaterniond
Mult void

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

Метод Описание
Add ( left, right ) : Quaterniond

Add two quaternions

Add ( &Quaterniond ) : void
Add ( &Quaterniond, &result ) : void
Add ( &left, &right, &result ) : void

Add two quaternions

Conjugate ( q ) : Quaterniond

Get the conjugate of the given Quaterniond

Conjugate ( ) : void

Convert this Quaterniond to its conjugate

Conjugate ( &result ) : void
Conjugate ( &q, &result ) : void

Get the conjugate of the given Quaterniond

Divide ( &Quaterniond, double scalar, &result ) : void
Divide ( double scalar ) : void
Divide ( double scalar, &result ) : void
DotProduct ( left, right ) : double
Equals ( other ) : bool

Compares this Quaterniond instance to another Quaterniond for equality.

Equals ( object other ) : bool

Compares this object instance to another object for equality.

Exp ( ) : void
Exp ( &result ) : void
Exp ( &Quaterniond, &result ) : void
FromAxisAngle ( OpenTK.Vector3d axis, double angle ) : Quaterniond

Build a Quaterniond from the given axis and angle

GetAxisAndAngle ( OpenTK.Vector3d &axis, double &angle ) : void
GetHashCode ( ) : int

Provides the hash code for this object.

Inverse ( ) : void
Inverse ( &result ) : void
Inverse ( &Quaterniond, &result ) : void
Invert ( q ) : Quaterniond

Get the inverse of the given Quaterniond

Invert ( &q, &result ) : void

Get the inverse of the given Quaterniond

Log ( ) : void
Log ( &result ) : void
Log ( &Quaterniond, &result ) : void
Matrix4d ( OpenTK.Matrix4d &result ) : void

Returns left matrix for this Quaterniond.

Multiply ( left, right ) : Quaterniond

Multiplies two instances.

Multiply ( quaternion, double scale ) : Quaterniond

Multiplies an instance by a scalar.

Multiply ( &Quaterniond ) : void
Multiply ( &Quaterniond, &result ) : void
Multiply ( &left, &right, &result ) : void

Multiplies two instances.

Multiply ( &quaternion, double scale, &result ) : void

Multiplies an instance by a scalar.

Multiply ( double scalar ) : void
Multiply ( double scalar, &result ) : void
Normalize ( q ) : Quaterniond

Scale the given Quaterniond to unit length

Normalize ( ) : void

Scales the Quaterniond to unit length.

Normalize ( &result ) : void
Normalize ( &q, &result ) : void

Scale the given Quaterniond to unit length

Parse ( string str, &result ) : void

Parses left string, converting it to left Quaterniond.

Quaterniond ( &Quaterniond ) : System

Constructs left Quaterniond that is left copy of the given Quaterniond.

Quaterniond ( Array doubleArray ) : System

Constructs left Quaterniond from the given array of double-precision floating-point numbers.

Quaterniond ( OpenTK.Matrix3d &matrix ) : System
Quaterniond ( OpenTK.Matrix4d &matrix ) : System

Constructs left Quaterniond from the given matrix. Only contains rotation information.

Quaterniond ( OpenTK.Vector3d v, double w ) : System

Construct a new Quaterniond from vector and w components

Quaterniond ( double w, OpenTK.Vector3d &vector3d ) : System

Constructs left Quaterniond from the given components.

Quaterniond ( double x, double y, double z, double w ) : System

Construct a new Quaterniond

Slerp ( q1, q2, double blend ) : Quaterniond

Do Spherical linear interpolation between two quaternions

Slerp ( &start, &end, double blend, &result ) : void
Sub ( left, right ) : Quaterniond

Subtracts two instances.

Sub ( &left, &right, &result ) : void

Subtracts two instances.

Subtract ( &Quaterniond ) : void
Subtract ( &Quaterniond, &result ) : void
Subtract ( &left, &right, &result ) : void
ToAxisAngle ( ) : OpenTK.Vector4d

Convert this instance to an axis-angle representation.

ToAxisAngle ( OpenTK.Vector3d &axis, double &angle ) : void

Convert the current quaternion to axis angle representation

ToString ( ) : string

Returns a System.String that represents the current Quaterniond.

operator ( ) : Quaterniond

Adds two instances.

operator ( ) : bool

Compares two instances for equality.

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

Метод Описание
Mult ( left, right ) : Quaterniond
Mult ( &left, &right, &result ) : void

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

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

Add two quaternions
public static Add ( left, right ) : Quaterniond
left The first operand
right The second operand
Результат Quaterniond

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

public Add ( &Quaterniond ) : void
Результат void

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

public Add ( &Quaterniond, &result ) : void
Результат void

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

Add two quaternions
public static Add ( &left, &right, &result ) : void
left The first operand
right The second operand
result The result of the addition
Результат void

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

Get the conjugate of the given Quaterniond
public static Conjugate ( q ) : Quaterniond
q The Quaterniond
Результат Quaterniond

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

Convert this Quaterniond to its conjugate
public Conjugate ( ) : void
Результат void

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

public Conjugate ( &result ) : void
Результат void

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

Get the conjugate of the given Quaterniond
public static Conjugate ( &q, &result ) : void
q The Quaterniond
result The conjugate of the given Quaterniond
Результат void

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

public static Divide ( &Quaterniond, double scalar, &result ) : void
scalar double
Результат void

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

public Divide ( double scalar ) : void
scalar double
Результат void

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

public Divide ( double scalar, &result ) : void
scalar double
Результат void

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

public static DotProduct ( left, right ) : double
Результат double

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

Compares this Quaterniond instance to another Quaterniond for equality.
public Equals ( other ) : bool
other The other Quaterniond to be used in the comparison.
Результат bool

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

Compares this object instance to another object for equality.
public Equals ( object other ) : bool
other object The other object to be used in the comparison.
Результат bool

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

public Exp ( ) : void
Результат void

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

public Exp ( &result ) : void
Результат void

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

public static Exp ( &Quaterniond, &result ) : void
Результат void

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

Build a Quaterniond from the given axis and angle
public static FromAxisAngle ( OpenTK.Vector3d axis, double angle ) : Quaterniond
axis OpenTK.Vector3d The axis to rotate about
angle double The rotation angle in radians
Результат Quaterniond

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

public GetAxisAndAngle ( OpenTK.Vector3d &axis, double &angle ) : void
axis OpenTK.Vector3d
angle double
Результат void

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

Provides the hash code for this object.
public GetHashCode ( ) : int
Результат int

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

public Inverse ( ) : void
Результат void

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

public Inverse ( &result ) : void
Результат void

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

public static Inverse ( &Quaterniond, &result ) : void
Результат void

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

Get the inverse of the given Quaterniond
public static Invert ( q ) : Quaterniond
q The Quaterniond to invert
Результат Quaterniond

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

Get the inverse of the given Quaterniond
public static Invert ( &q, &result ) : void
q The Quaterniond to invert
result The inverse of the given Quaterniond
Результат void

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

public Log ( ) : void
Результат void

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

public Log ( &result ) : void
Результат void

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

public static Log ( &Quaterniond, &result ) : void
Результат void

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

Returns left matrix for this Quaterniond.
public Matrix4d ( OpenTK.Matrix4d &result ) : void
result OpenTK.Matrix4d
Результат void

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

Multiplies two instances.
public static Multiply ( left, right ) : Quaterniond
left The first instance.
right The second instance.
Результат Quaterniond

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

Multiplies an instance by a scalar.
public static Multiply ( quaternion, double scale ) : Quaterniond
quaternion The instance.
scale double The scalar.
Результат Quaterniond

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

public Multiply ( &Quaterniond ) : void
Результат void

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

public Multiply ( &Quaterniond, &result ) : void
Результат void

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

Multiplies two instances.
public static Multiply ( &left, &right, &result ) : void
left The first instance.
right The second instance.
result A new instance containing the result of the calculation.
Результат void

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

Multiplies an instance by a scalar.
public static Multiply ( &quaternion, double scale, &result ) : void
quaternion The instance.
scale double The scalar.
result A new instance containing the result of the calculation.
Результат void

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

public Multiply ( double scalar ) : void
scalar double
Результат void

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

public Multiply ( double scalar, &result ) : void
scalar double
Результат void

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

Scale the given Quaterniond to unit length
public static Normalize ( q ) : Quaterniond
q The Quaterniond to normalize
Результат Quaterniond

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

Scales the Quaterniond to unit length.
public Normalize ( ) : void
Результат void

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

public Normalize ( &result ) : void
Результат void

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

Scale the given Quaterniond to unit length
public static Normalize ( &q, &result ) : void
q The Quaterniond to normalize
result The normalized Quaterniond
Результат void

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

Parses left string, converting it to left Quaterniond.
public static Parse ( string str, &result ) : void
str string The string to parse.
Результат void

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

Constructs left Quaterniond that is left copy of the given Quaterniond.
public Quaterniond ( &Quaterniond ) : System
Результат System

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

Constructs left Quaterniond from the given array of double-precision floating-point numbers.
public Quaterniond ( Array doubleArray ) : System
doubleArray Array The array of doubles for the components of the Quaterniond.
Результат System

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

public Quaterniond ( OpenTK.Matrix3d &matrix ) : System
matrix OpenTK.Matrix3d
Результат System

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

Constructs left Quaterniond from the given matrix. Only contains rotation information.
public Quaterniond ( OpenTK.Matrix4d &matrix ) : System
matrix OpenTK.Matrix4d The matrix for the components of the Quaterniond.
Результат System

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

Construct a new Quaterniond from vector and w components
public Quaterniond ( OpenTK.Vector3d v, double w ) : System
v OpenTK.Vector3d The vector part
w double The w part
Результат System

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

Constructs left Quaterniond from the given components.
public Quaterniond ( double w, OpenTK.Vector3d &vector3d ) : System
w double The W component for the Quaterniond.
vector3d OpenTK.Vector3d A Vector representing the X, Y, and Z componets for the quaterion.
Результат System

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

Construct a new Quaterniond
public Quaterniond ( double x, double y, double z, double w ) : System
x double The x component
y double The y component
z double The z component
w double The w component
Результат System

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

Do Spherical linear interpolation between two quaternions
public static Slerp ( q1, q2, double blend ) : Quaterniond
q1 The first Quaterniond
q2 The second Quaterniond
blend double The blend factor
Результат Quaterniond

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

public static Slerp ( &start, &end, double blend, &result ) : void
blend double
Результат void

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

Subtracts two instances.
public static Sub ( left, right ) : Quaterniond
left The left instance.
right The right instance.
Результат Quaterniond

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

Subtracts two instances.
public static Sub ( &left, &right, &result ) : void
left The left instance.
right The right instance.
result The result of the operation.
Результат void

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

public Subtract ( &Quaterniond ) : void
Результат void

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

public Subtract ( &Quaterniond, &result ) : void
Результат void

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

public static Subtract ( &left, &right, &result ) : void
Результат void

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

Convert this instance to an axis-angle representation.
public ToAxisAngle ( ) : OpenTK.Vector4d
Результат OpenTK.Vector4d

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

Convert the current quaternion to axis angle representation
public ToAxisAngle ( OpenTK.Vector3d &axis, double &angle ) : void
axis OpenTK.Vector3d The resultant axis
angle double The resultant angle
Результат void

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

Returns a System.String that represents the current Quaterniond.
public ToString ( ) : string
Результат string

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

Adds two instances.
public static operator ( ) : Quaterniond
Результат Quaterniond

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

Compares two instances for equality.
public static operator ( ) : bool
Результат bool

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

Identity публичное статическое свойство

Defines the identity quaternion.
public static Quaterniond,OpenTK Identity
Результат Quaterniond

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

The W component of the Quaterniond.
public double W
Результат double

WAxis публичное статическое свойство

A quaterion representing the W axis.
public static Quaterniond,OpenTK WAxis
Результат Quaterniond

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

The X component of the Quaterniond.
public double X
Результат double

XAxis публичное статическое свойство

A quaterion representing the X axis.
public static Quaterniond,OpenTK XAxis
Результат Quaterniond

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

The Y component of the Quaterniond.
public double Y
Результат double

YAxis публичное статическое свойство

A quaterion representing the Y axis.
public static Quaterniond,OpenTK YAxis
Результат Quaterniond

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

The Z component of the Quaterniond.
public double Z
Результат double

ZAxis публичное статическое свойство

A quaterion representing the Z axis.
public static Quaterniond ZAxis
Результат Quaterniond

Zero публичное статическое свойство

A quaterion with all zero components.
public static Quaterniond Zero
Результат Quaterniond