Class TofArVector3
Serializable Vector3
Inheritance
Namespace: TofAr.V0
Assembly: TofArAssembly.dll
Syntax
[MessagePackObject(false)]
public class TofArVector3
Constructors
TofArVector3()
Constructor
Declaration
public TofArVector3()
TofArVector3(Single, Single, Single)
Constructor
Declaration
public TofArVector3(float x, float y, float z)
Parameters
Type | Name | Description |
---|---|---|
System.Single | x | Vector3 x value |
System.Single | y | Vector3 y value |
System.Single | z | Vector3 z value |
TofArVector3(Vector3)
Constructor
Declaration
public TofArVector3(Vector3 value)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector3 | value | UnityEngine Vector3 |
Fields
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
GetVector3()
Get UnityEngine.Vector3
Declaration
public Vector3 GetVector3()
Returns
Type | Description |
---|---|
UnityEngine.Vector3 | UnityEngine.Vector3 |
Operators
Explicit(TofArVector3 to Vector3)
Convert TofArVector3 to UnityEngine.Vector3
Declaration
public static explicit operator Vector3(TofArVector3 v)
Parameters
Type | Name | Description |
---|---|---|
TofArVector3 | v | Converted UnityEngine.Vector3 |
Returns
Type | Description |
---|---|
UnityEngine.Vector3 |
Implicit(Vector3 to TofArVector3)
Convert UnityEngine.Vector3 to TofArVector3
Declaration
public static implicit operator TofArVector3(Vector3 v)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector3 | v | Converted TofArVector3 |
Returns
Type | Description |
---|---|
TofArVector3 |