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