Class TofArVector2
シリアライズ可能なVector2
Inheritance
System.Object
TofArVector2
Namespace: TofAr.V0
Assembly: TofArAssembly.dll
Syntax
[MessagePackObject(false)]
public class TofArVector2
Constructors
TofArVector2()
コンストラクタ
Declaration
public TofArVector2()
TofArVector2(Single, Single)
コンストラクタ
Declaration
public TofArVector2(float x, float y)
Parameters
Type | Name | Description |
---|---|---|
System.Single | x | Vector2のX値 |
System.Single | y | Vector2のY値 |
TofArVector2(Vector2)
コンストラクタ
Declaration
public TofArVector2(Vector2 value)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector2 | value | UnityEngineのVector2 |
Fields
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 |
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()
GetVector2()
UnityEngine.Vector2を取得する
Declaration
public Vector2 GetVector2()
Returns
Type | Description |
---|---|
UnityEngine.Vector2 | UnityEngine.Vector2 |
Operators
Explicit(TofArVector2 to Vector2)
TofArVector2をUnityEngine.Vector2へ変換する
Declaration
public static explicit operator Vector2(TofArVector2 v)
Parameters
Type | Name | Description |
---|---|---|
TofArVector2 | v | 変換されたUnityEngine.Vector2 |
Returns
Type | Description |
---|---|
UnityEngine.Vector2 |
Implicit(Vector2 to TofArVector2)
UnityEngine.Vector2をTofArVector2へ変換する
Declaration
public static implicit operator TofArVector2(Vector2 v)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector2 | v | 変換されたTofArVector2 |
Returns
Type | Description |
---|---|
TofArVector2 |