Quaternion

StockSharp.Xaml.Charting.Rendering.HighQualityRasterizer.Agg.VectorMath

Represents a double-precision Quaternion.

Implementa: IEquatable<Quaternion>

Constructores

Quaternion(Vector3, double)

Construct a new Quaterniond from vector and w components

v
The vector part
w
The w part
Quaternion(double, double, double, double)

Construct a new Quaterniond

x
The x component
y
The y component
z
The z component
w
The w component

Propiedades

Length : double

Gets the length (magnitude) of the Quaterniond.

LengthSquared : double

Gets the square of the Quaterniond length (magnitude).

W : double

Gets or sets the W component of this instance.

X : double

Gets or sets the X component of this instance.

Xyz : Vector3

Gets or sets an OpenTK.Vector3d with the X, Y and Z components of this instance.

Y : double

Gets or sets the Y component of this instance.

Z : double

Gets or sets the Z component of this instance.

Métodos

Add(Quaternion, Quaternion, Quaternion)

Add two quaternions

left
The first operand
right
The second operand
result
The result of the addition
Add(Quaternion, Quaternion) : Quaternion

Add two quaternions

left
The first operand
right
The second operand

Devuelve: The result of the addition

Conjugate(Quaternion, Quaternion)

Get the conjugate of the given Quaterniond

q
The Quaterniond
result
The conjugate of the given Quaterniond
Conjugate(Quaternion) : Quaternion

Get the conjugate of the given Quaterniond

q
The Quaterniond

Devuelve: The conjugate of the given Quaterniond

Conjugate()

Convert this Quaterniond to its conjugate

Equals(Quaternion) : bool

Compares this Quaterniond instance to another Quaterniond for equality.

other
The other Quaterniond to be used in the comparison.

Devuelve: True if both instances are equal; false otherwise.

Equals(object) : bool

Compares this object instance to another object for equality.

other
The other object to be used in the comparison.

Devuelve: True if both objects are Quaternions of equal value. Otherwise it returns false.

FromAxisAngle(Vector3, double) : Quaternion

Build a Quaterniond from the given axis and angle

axis
The axis to rotate about
angle
The rotation angle in radians
GetHashCode() : int

Provides the hash code for this object.

Devuelve: A hash code formed from the bitwise XOR of this objects members.

Invert(Quaternion, Quaternion)

Get the inverse of the given Quaterniond

q
The Quaterniond to invert
result
The inverse of the given Quaterniond
Invert(Quaternion) : Quaternion

Get the inverse of the given Quaterniond

q
The Quaterniond to invert

Devuelve: The inverse of the given Quaterniond

Mult(Quaternion, Quaternion, Quaternion)

Multiplies two instances.

left
The first instance.
right
The second instance.
result
A new instance containing the result of the calculation.
Mult(Quaternion, Quaternion) : Quaternion

Multiplies two instances.

left
The first instance.
right
The second instance.

Devuelve: A new instance containing the result of the calculation.

Multiply(Quaternion, double, Quaternion)

Multiplies an instance by a scalar.

quaternion
The instance.
scale
The scalar.
result
A new instance containing the result of the calculation.
Multiply(Quaternion, double) : Quaternion

Multiplies an instance by a scalar.

quaternion
The instance.
scale
The scalar.

Devuelve: A new instance containing the result of the calculation.

Multiply(Quaternion, Quaternion) : Quaternion

Multiplies two instances.

left
The first instance.
right
The second instance.

Devuelve: A new instance containing the result of the calculation.

Multiply(Quaternion, Quaternion, Quaternion)

Multiplies two instances.

left
The first instance.
right
The second instance.
result
A new instance containing the result of the calculation.
Normalize()

Scales the Quaterniond to unit length.

Normalize(Quaternion) : Quaternion

Scale the given Quaterniond to unit length

q
The Quaterniond to normalize

Devuelve: The normalized Quaterniond

Normalize(Quaternion, Quaternion)

Scale the given Quaterniond to unit length

q
The Quaterniond to normalize
result
The normalized Quaterniond
op_Addition(Quaternion, Quaternion) : Quaternion

Adds two instances.

left
The first instance.
right
The second instance.

Devuelve: The result of the calculation.

op_Equality(Quaternion, Quaternion) : bool

Compares two instances for equality.

left
The first instance.
right
The second instance.

Devuelve: True, if left equals right; false otherwise.

op_Inequality(Quaternion, Quaternion) : bool

Compares two instances for inequality.

left
The first instance.
right
The second instance.

Devuelve: True, if left does not equal right; false otherwise.

op_Multiply(double, Quaternion) : Quaternion

Multiplies an instance by a scalar.

quaternion
The instance.
scale
The scalar.

Devuelve: A new instance containing the result of the calculation.

op_Multiply(Quaternion, double) : Quaternion

Multiplies an instance by a scalar.

quaternion
The instance.
scale
The scalar.

Devuelve: A new instance containing the result of the calculation.

op_Multiply(Quaternion, Quaternion) : Quaternion

Multiplies two instances.

left
The first instance.
right
The second instance.

Devuelve: The result of the calculation.

op_Subtraction(Quaternion, Quaternion) : Quaternion

Subtracts two instances.

left
The first instance.
right
The second instance.

Devuelve: The result of the calculation.

Slerp(Quaternion, Quaternion, double) : Quaternion

Do Spherical linear interpolation between two quaternions

q1
The first Quaterniond
q2
The second Quaterniond
blend
The blend factor

Devuelve: A smooth blend between the given quaternions

Sub(Quaternion, Quaternion, Quaternion)

Subtracts two instances.

left
The left instance.
right
The right instance.
result
The result of the operation.
Sub(Quaternion, Quaternion) : Quaternion

Subtracts two instances.

left
The left instance.
right
The right instance.

Devuelve: The result of the operation.

ToAxisAngle(Vector3, double)

Convert the current quaternion to axis angle representation

axis
The resultant axis
angle
The resultant angle
ToAxisAngle() : Vector4

Convert this instance to an axis-angle representation.

Devuelve: A Vector4 that is the axis-angle representation of this quaternion.

ToString() : string

Returns a System.String that represents the current Quaterniond.

Campos

Identity : Quaternion

Defines the identity quaternion.