C# 클래스 Afterglow.Math.Quaternion

Represents a rotation in 3d-space with four values (a rotation axis and an angle). http://en.wikipedia.org/wiki/Quaternion
파일 보기 프로젝트 열기: Christof/afterglow 1 사용 예제들

공개 메소드들

메소드 설명
Quaternion ( Vector3 vector3 )

Initializes a new instance of the Quaternion class.

Quaternion ( Vector3 sourcePosition, Vector3 destinationPosition )

Initializes a new instance of the Quaternion class.

Quaternion ( Vector3 rotationAxis, float angle )

Initializes a new instance of the Quaternion class.

ToAxisAngle ( ) : Vector4

Returns the axis angle representation in a Vector4. The x, y and z componentes are the axis and w is the angle.

ToMatrix ( ) : Matrix

Converts to quaternion to a rotation matrix.

operator ( ) : Quaternion

Concatenates two quaternions. The right argument is applied first.

메소드 상세

Quaternion() 공개 메소드

Initializes a new instance of the Quaternion class.
public Quaternion ( Vector3 vector3 )
vector3 Vector3 The vector which should be represented as quaternion.

Quaternion() 공개 메소드

Initializes a new instance of the Quaternion class.
public Quaternion ( Vector3 sourcePosition, Vector3 destinationPosition )
sourcePosition Vector3 The source position.
destinationPosition Vector3 The destination position.

Quaternion() 공개 메소드

Initializes a new instance of the Quaternion class.
public Quaternion ( Vector3 rotationAxis, float angle )
rotationAxis Vector3 The rotation axis.
angle float The angle.

ToAxisAngle() 공개 메소드

Returns the axis angle representation in a Vector4. The x, y and z componentes are the axis and w is the angle.
public ToAxisAngle ( ) : Vector4
리턴 Vector4

ToMatrix() 공개 메소드

Converts to quaternion to a rotation matrix.
public ToMatrix ( ) : Matrix
리턴 Matrix

operator() 공개 정적인 메소드

Concatenates two quaternions. The right argument is applied first.
public static operator ( ) : Quaternion
리턴 Quaternion