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