Struct Coordinate
Coordinate system for recording position, rotation and scale.
記錄位置、角度及大小的座標系統。
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
Namespace: Votanic.vXR.vGear
Assembly: Votanic.vXR.dll
Syntax
[Serializable]
public struct Coordinate
Constructors
Coordinate(Vector3)
Declare a coordinate.
宣告一個座標。
Declaration
public Coordinate(Vector3 position)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector3 | position | Position to record |
Coordinate(Vector3, Quaternion)
Declare a coordinate.
宣告一個座標。
Declaration
public Coordinate(Vector3 position, Quaternion rotation)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector3 | position | Position to record |
UnityEngine.Quaternion | rotation | Rotation to record in quaternion |
Coordinate(Vector3, Quaternion, Vector3)
Declare a coordinate.
宣告一個座標。
Declaration
public Coordinate(Vector3 position, Quaternion rotation, Vector3 scale)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector3 | position | Position to record |
UnityEngine.Quaternion | rotation | Rotation to record in quaternion |
UnityEngine.Vector3 | scale | Scale to record |
Coordinate(Vector3, Vector3)
Declare a coordinate.
宣告一個座標。
Declaration
public Coordinate(Vector3 position, Vector3 eulerAngles)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector3 | position | Position to record |
UnityEngine.Vector3 | eulerAngles | Rotation to record in euler angles |
Coordinate(Vector3, Vector3, Vector3)
Declare a coordinate.
宣告一個座標。
Declaration
public Coordinate(Vector3 position, Vector3 eulerAngles, Vector3 scale)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Vector3 | position | Position to record |
UnityEngine.Vector3 | eulerAngles | Rotation to record in euler angles |
UnityEngine.Vector3 | scale | Scale to record |
Fields
eulerAngles
Rotation to record in euler angles.
記錄的旋轉角度。
Declaration
[Tooltip("Rotation to record in euler angles.\n記錄的旋轉角度。")]
public Vector3 eulerAngles
Field Value
Type | Description |
---|---|
UnityEngine.Vector3 |
position
Position to record.
記錄的位置。
Declaration
[Tooltip("Position to record.\n記錄的位置。")]
public Vector3 position
Field Value
Type | Description |
---|---|
UnityEngine.Vector3 |
rotation
Rotation to record in quaternion.
記錄的旋轉四元素。
Declaration
[HideInInspector]
[Tooltip("Rotation to record in quaternion.\n記錄的旋轉四元素。")]
public Quaternion rotation
Field Value
Type | Description |
---|---|
UnityEngine.Quaternion |
scale
Scale to record.
記錄的大小。
Declaration
[Tooltip("Scale to record.\n記錄的大小。")]
public Vector3 scale
Field Value
Type | Description |
---|---|
UnityEngine.Vector3 |