Edytuj

Udostępnij za pośrednictwem


SCNQuaternion Struct

Definition

Represents a quaternion and contains methods that operate on them.

[System.Serializable]
public struct SCNQuaternion : IEquatable<SceneKit.SCNQuaternion>
type SCNQuaternion = struct
Inheritance
SCNQuaternion
Attributes
Implements

Constructors

SCNQuaternion(Matrix3)
SCNQuaternion(nfloat, nfloat, nfloat, nfloat)
SCNQuaternion(Quaternion)
SCNQuaternion(SCNVector3, nfloat)
SCNQuaternion(SCNVector3, Single)
SCNQuaternion(Single, Single, Single, Single)

Fields

Identity

Returns a quaternion that represents no rotation.

Properties

Length

Gets the length of the quaternion.

LengthSquared

Gets the square of the length of the quaternion.

W

Gets or sets the W component.

X

Gets or sets the X component.

Xyz

Gets or sets the X, Y, and Z components.

Y

Gets or sets the Y component.

Z

Gets or sets the Z component.

Methods

Add(SCNQuaternion, SCNQuaternion, SCNQuaternion)

Adds right to left, and puts the result in result.

Add(SCNQuaternion, SCNQuaternion)

Adds right to left.

Conjugate()

Returns the quaternion conjugate of this instance.

Conjugate(SCNQuaternion, SCNQuaternion)

Calculates the quaternion conjugate of q and stores it in result.

Conjugate(SCNQuaternion)

Returns the quaternion conjugate of q.

Equals(Object)

Returns true if other is a quaternion and is identical to this quaternion.

Equals(SCNQuaternion)

Returns true if other is identical to this .

FromAxisAngle(SCNVector3, Single)

Creates and returns a new quaternion that represents the specified rotation about the specified axis.

GetHashCode()

Returns the hashcode for this instance.

Invert(SCNQuaternion, SCNQuaternion)

Returns the quaternion that inverts the rotation that is performed by q and stores the result in result.

Invert(SCNQuaternion)

Returns the quaternion that inverts the rotation that is performed by q.

Multiply(SCNQuaternion, SCNQuaternion, SCNQuaternion)

Multiplies left by right and stores the result in result.

Multiply(SCNQuaternion, SCNQuaternion)

Multiplies left by right.

Multiply(SCNQuaternion, Single, SCNQuaternion)

Multiplies quaternion by the scalar scale and stores the result in result.

Multiply(SCNQuaternion, Single)

Multiplies quaternion by the scalar scale.

Normalize()

Scales the instance to unit length.

Normalize(SCNQuaternion, SCNQuaternion)

Scales q to unit length and stores the result in result.

Normalize(SCNQuaternion)

Scales q to unit length.

Slerp(SCNQuaternion, SCNQuaternion, Single)

Returns the spherical linear interpolation from q1 to q2 by factor blend.

Sub(SCNQuaternion, SCNQuaternion, SCNQuaternion)

Subtracts right from left and stores the result in result.

Sub(SCNQuaternion, SCNQuaternion)

Subtracts right from left.

ToAxisAngle()

Returns an axis-angle representation of the quaternion.

ToAxisAngle(SCNVector3, nfloat)
ToAxisAngle(SCNVector3, Single)

Stores the axis of rotation of the quaternion in axis, and the rotation angle, in radians, in angle.

ToString()

Returns a string representation of this instance.

Operators

Addition(SCNQuaternion, SCNQuaternion)
Equality(SCNQuaternion, SCNQuaternion)
Inequality(SCNQuaternion, SCNQuaternion)
Multiply(SCNQuaternion, SCNQuaternion)
Multiply(SCNQuaternion, Single)
Multiply(Single, SCNQuaternion)
Subtraction(SCNQuaternion, SCNQuaternion)

Applies to