Class TofArQuaternion
Serializable Quaternion
Inheritance
Namespace: TofAr.V0
Assembly: TofArAssembly.dll
Syntax
[MessagePackObject(false)]
public class TofArQuaternion
Constructors
TofArQuaternion()
Constructor
Declaration
public TofArQuaternion()
TofArQuaternion(Single, Single, Single, Single)
Constructor
Declaration
public TofArQuaternion(float x, float y, float z, float w)
Parameters
Type | Name | Description |
---|---|---|
System.Single | x | X value |
System.Single | y | Y value |
System.Single | z | Z value |
System.Single | w | W value |
Fields
w
W value
Declaration
[Key("w")]
public float w
Field Value
Type |
---|
System.Single |
x
X value
Declaration
[Key("x")]
public float x
Field Value
Type |
---|
System.Single |
y
Y value
Declaration
[Key("y")]
public float y
Field Value
Type |
---|
System.Single |
z
Z value
Declaration
[Key("z")]
public float z
Field Value
Type |
---|
System.Single |
Methods
Equals(Object)
Compare
Declaration
public override bool Equals(object other)
Parameters
Type | Name | Description |
---|---|---|
System.Object | other | Object to compare |
Returns
Type | Description |
---|---|
System.Boolean | Returns true when equal |
Overrides
GetHashCode()
Get hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
GetQuaternion()
Get UnityEngine.Quaternion
Declaration
public Quaternion GetQuaternion()
Returns
Type | Description |
---|---|
UnityEngine.Quaternion | UnityEngine.Quaternion |
Operators
Explicit(TofArQuaternion to Quaternion)
Convert TofArQuaternion to UnityEngine.Quaternion
Declaration
public static explicit operator Quaternion(TofArQuaternion q)
Parameters
Type | Name | Description |
---|---|---|
TofArQuaternion | q | Converted UnityEngine.Quaternion |
Returns
Type | Description |
---|---|
UnityEngine.Quaternion |
Implicit(Quaternion to TofArQuaternion)
Convert UnityEngine.Quaternion to TofArQuaternion
Declaration
public static implicit operator TofArQuaternion(Quaternion q)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Quaternion | q | Converted TofArQuaternion |
Returns
Type | Description |
---|---|
TofArQuaternion |