Class TofArQuaternion
シリアライズ可能なQuaternion
Inheritance
System.Object
TofArQuaternion
Namespace: TofAr.V0
Assembly: TofArAssembly.dll
Syntax
[MessagePackObject(false)]
public class TofArQuaternion
Constructors
TofArQuaternion()
コンストラクタ
Declaration
public TofArQuaternion()
TofArQuaternion(Single, Single, Single, Single)
コンストラクタ
Declaration
public TofArQuaternion(float x, float y, float z, float w)
Parameters
Type | Name | Description |
---|---|---|
System.Single | x | X値 |
System.Single | y | Y値 |
System.Single | z | Z値 |
System.Single | w | W値 |
Fields
w
W値
Declaration
[Key("w")]
public float w
Field Value
Type |
---|
System.Single |
x
X値
Declaration
[Key("x")]
public float x
Field Value
Type |
---|
System.Single |
y
Y値
Declaration
[Key("y")]
public float y
Field Value
Type |
---|
System.Single |
z
Z値
Declaration
[Key("z")]
public float z
Field Value
Type |
---|
System.Single |
Methods
Equals(Object)
比較する
Declaration
public override bool Equals(object other)
Parameters
Type | Name | Description |
---|---|---|
System.Object | other | 比較するオブジェクト |
Returns
Type | Description |
---|---|
System.Boolean | trueの場合, 等しい |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
ハッシュコードを取得する
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | ハッシュコード |
Overrides
System.Object.GetHashCode()
GetQuaternion()
UnityEngine.Quaternionを取得する
Declaration
public Quaternion GetQuaternion()
Returns
Type | Description |
---|---|
UnityEngine.Quaternion | UnityEngine.Quaternion |
Operators
Explicit(TofArQuaternion to Quaternion)
TofArQuaternionをUnityEngine.Quaternionへ変換する
Declaration
public static explicit operator Quaternion(TofArQuaternion q)
Parameters
Type | Name | Description |
---|---|---|
TofArQuaternion | q | 変換されたUnityEngine.Quaternion |
Returns
Type | Description |
---|---|
UnityEngine.Quaternion |
Implicit(Quaternion to TofArQuaternion)
UnityEngine.QuaternionをTofArQuaternionへ変換する
Declaration
public static implicit operator TofArQuaternion(Quaternion q)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Quaternion | q | 変換されたTofArQuaternion |
Returns
Type | Description |
---|---|
TofArQuaternion |