Quaternion Quaternion Quaternion Quaternion Struct

定義

3 次元物理回転をエンコードするために使用されるベクトルを表します。Represents a vector that is used to encode three-dimensional physical rotations.

public value class Quaternion : IEquatable<System::Numerics::Quaternion>
public struct Quaternion : IEquatable<System.Numerics.Quaternion>
type Quaternion = struct
Public Structure Quaternion
Implements IEquatable(Of Quaternion)
継承
QuaternionQuaternionQuaternionQuaternion
実装

注釈

Quaternion構造体は、(x, y, z) ベクトルに関するオブジェクトを、山のシータによって効率的に回転するために使用されます。The Quaternion structure is used to efficiently rotate an object about the (x,y,z) vector by the angle theta, where:

w = cos(theta/2)  

コンストラクター

Quaternion(Vector3, Single) Quaternion(Vector3, Single) Quaternion(Vector3, Single) Quaternion(Vector3, Single)

指定したベクトルおよび回転部分から四元数を作成します。Creates a quaternion from the specified vector and rotation parts.

Quaternion(Single, Single, Single, Single) Quaternion(Single, Single, Single, Single) Quaternion(Single, Single, Single, Single) Quaternion(Single, Single, Single, Single)

指定した成分から四元数を構築します。Constructs a quaternion from the specified components.

フィールド

W W W W

四元数の回転成分。The rotation component of the quaternion.

X X X X

四元数のベクトル成分の X 値。The X value of the vector component of the quaternion.

Y Y Y Y

四元数のベクトル成分の Y 値。The Y value of the vector component of the quaternion.

Z Z Z Z

四元数のベクトル成分の Z 値。The Z value of the vector component of the quaternion.

プロパティ

Identity Identity Identity Identity

回転なしを表す四元数を取得します。Gets a quaternion that represents no rotation.

IsIdentity IsIdentity IsIdentity IsIdentity

現在のインスタンスが単位四元数かどうかを示す値を取得します。Gets a value that indicates whether the current instance is the identity quaternion.

メソッド

Add(Quaternion, Quaternion) Add(Quaternion, Quaternion) Add(Quaternion, Quaternion) Add(Quaternion, Quaternion)

1 つの四元数の各要素に、2 番目の四元数の対応する要素を加算します。Adds each element in one quaternion with its corresponding element in a second quaternion.

Concatenate(Quaternion, Quaternion) Concatenate(Quaternion, Quaternion) Concatenate(Quaternion, Quaternion) Concatenate(Quaternion, Quaternion)

2 つの四元数を連結します。Concatenates two quaternions.

Conjugate(Quaternion) Conjugate(Quaternion) Conjugate(Quaternion) Conjugate(Quaternion)

指定した四元数の共役を返します。Returns the conjugate of a specified quaternion.

CreateFromAxisAngle(Vector3, Single) CreateFromAxisAngle(Vector3, Single) CreateFromAxisAngle(Vector3, Single) CreateFromAxisAngle(Vector3, Single)

単位ベクトルとベクトルの周りの回転角度から四元数を作成します。Creates a quaternion from a unit vector and an angle to rotate around the vector.

CreateFromRotationMatrix(Matrix4x4) CreateFromRotationMatrix(Matrix4x4) CreateFromRotationMatrix(Matrix4x4) CreateFromRotationMatrix(Matrix4x4)

指定した回転行列から四元数を作成します。Creates a quaternion from the specified rotation matrix.

CreateFromYawPitchRoll(Single, Single, Single) CreateFromYawPitchRoll(Single, Single, Single) CreateFromYawPitchRoll(Single, Single, Single) CreateFromYawPitchRoll(Single, Single, Single)

特定のヨー、ピッチ、およびロールから新しい四元数を作成します。Creates a new quaternion from the given yaw, pitch, and roll.

Divide(Quaternion, Quaternion) Divide(Quaternion, Quaternion) Divide(Quaternion, Quaternion) Divide(Quaternion, Quaternion)

ある四元数を 2 番目の四元数で除算します。Divides one quaternion by a second quaternion.

Dot(Quaternion, Quaternion) Dot(Quaternion, Quaternion) Dot(Quaternion, Quaternion) Dot(Quaternion, Quaternion)

2 つの四元数のドット積を計算します。Calculates the dot product of two quaternions.

Equals(Quaternion) Equals(Quaternion) Equals(Quaternion) Equals(Quaternion)

このインスタンスと、別の四元数が等しいかどうかを示す値を返します。Returns a value that indicates whether this instance and another quaternion are equal.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

このインスタンスと、指定したオブジェクトが等しいかどうかを示す値を返します。Returns a value that indicates whether this instance and a specified object are equal.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

このインスタンスのハッシュ コードを返します。Returns the hash code for this instance.

Inverse(Quaternion) Inverse(Quaternion) Inverse(Quaternion) Inverse(Quaternion)

四元数の逆数を返します。Returns the inverse of a quaternion.

Length() Length() Length() Length()

四元数の長さを計算します。Calculates the length of the quaternion.

LengthSquared() LengthSquared() LengthSquared() LengthSquared()

四元数の長さの 2 乗を計算します。Calculates the squared length of the quaternion.

Lerp(Quaternion, Quaternion, Single) Lerp(Quaternion, Quaternion, Single) Lerp(Quaternion, Quaternion, Single) Lerp(Quaternion, Quaternion, Single)

2 つの四元数の間の線形補間を、2 番目の四元数の重み付けを指定する値に基づいて実行します。Performs a linear interpolation between two quaternions based on a value that specifies the weighting of the second quaternion.

Multiply(Quaternion, Quaternion) Multiply(Quaternion, Quaternion) Multiply(Quaternion, Quaternion) Multiply(Quaternion, Quaternion)

2 つの四元数を乗算することによって生成される四元数を返します。Returns the quaternion that results from multiplying two quaternions together.

Multiply(Quaternion, Single) Multiply(Quaternion, Single) Multiply(Quaternion, Single) Multiply(Quaternion, Single)

指定した四元数のすべての成分をスカラー因子倍した四元数を返します。Returns the quaternion that results from scaling all the components of a specified quaternion by a scalar factor.

Negate(Quaternion) Negate(Quaternion) Negate(Quaternion) Negate(Quaternion)

四元数の各成分の符号を反転させます。Reverses the sign of each component of the quaternion.

Normalize(Quaternion) Normalize(Quaternion) Normalize(Quaternion) Normalize(Quaternion)

指定した Quaternion の各成分を、その長さで除算します。Divides each component of a specified Quaternion by its length.

Slerp(Quaternion, Quaternion, Single) Slerp(Quaternion, Quaternion, Single) Slerp(Quaternion, Quaternion, Single) Slerp(Quaternion, Quaternion, Single)

球面線形補間を使用して 2 つの四元数の間を補間します。Interpolates between two quaternions, using spherical linear interpolation.

Subtract(Quaternion, Quaternion) Subtract(Quaternion, Quaternion) Subtract(Quaternion, Quaternion) Subtract(Quaternion, Quaternion)

最初の四元数の各要素から、2 番目の四元数の対応する要素をそれぞれ減算します。Subtracts each element in a second quaternion from its corresponding element in a first quaternion.

ToString() ToString() ToString() ToString()

この四元数を表す文字列を返します。Returns a string that represents this quaternion.

演算子

Addition(Quaternion, Quaternion) Addition(Quaternion, Quaternion) Addition(Quaternion, Quaternion) Addition(Quaternion, Quaternion)

1 つの四元数の各要素に、2 番目の四元数の対応する要素を加算します。Adds each element in one quaternion with its corresponding element in a second quaternion.

Division(Quaternion, Quaternion) Division(Quaternion, Quaternion) Division(Quaternion, Quaternion) Division(Quaternion, Quaternion)

ある四元数を 2 番目の四元数で除算します。Divides one quaternion by a second quaternion.

Equality(Quaternion, Quaternion) Equality(Quaternion, Quaternion) Equality(Quaternion, Quaternion) Equality(Quaternion, Quaternion)

2 つの四元数が等しいかどうかを示す値を返します。Returns a value that indicates whether two quaternions are equal.

Inequality(Quaternion, Quaternion) Inequality(Quaternion, Quaternion) Inequality(Quaternion, Quaternion) Inequality(Quaternion, Quaternion)

2 つの四元数が等しくないかどうかを示す値を返します。Returns a value that indicates whether two quaternions are not equal.

Multiply(Quaternion, Single) Multiply(Quaternion, Single) Multiply(Quaternion, Single) Multiply(Quaternion, Single)

指定した四元数のすべての成分をスカラー因子倍した四元数を返します。Returns the quaternion that results from scaling all the components of a specified quaternion by a scalar factor.

Multiply(Quaternion, Quaternion) Multiply(Quaternion, Quaternion) Multiply(Quaternion, Quaternion) Multiply(Quaternion, Quaternion)

2 つの四元数を乗算することによって生成される四元数を返します。Returns the quaternion that results from multiplying two quaternions together.

Subtraction(Quaternion, Quaternion) Subtraction(Quaternion, Quaternion) Subtraction(Quaternion, Quaternion) Subtraction(Quaternion, Quaternion)

最初の四元数の各要素から、2 番目の四元数の対応する要素をそれぞれ減算します。Subtracts each element in a second quaternion from its corresponding element in a first quaternion.

UnaryNegation(Quaternion) UnaryNegation(Quaternion) UnaryNegation(Quaternion) UnaryNegation(Quaternion)

四元数の各成分の符号を反転させます。Reverses the sign of each component of the quaternion.

適用対象