Interface ISpatialCoordinate
This represents a spatial coordinate that can then be used to convert position and rotation to and from this coordinate space.
Assembly: cs.temp.dll.dll
Syntax
public interface ISpatialCoordinate
Properties
Id
Gets the Id representing this coordinate.
Declaration
Property Value
State
Gets the current state of the coordinate.
Declaration
LocatedState State { get; }
Property Value
Methods
CoordinateToWorldSpace(Quaternion)
Converts coordinate space position to world space position.
For example, applying this transform to Quaternion.identity would return the quaternion of the coordinate in the local application's world space.
Declaration
Quaternion CoordinateToWorldSpace(Quaternion quaternion)
Parameters
Type |
Name |
Description |
Quaternion |
quaternion |
|
Returns
Type |
Description |
Quaternion |
|
CoordinateToWorldSpace(Vector3)
Converts coordinate space position to world space position.
For example, applying this transform to Vector3.zero would return the position of the coordinate in the local application's world space.
Declaration
Vector3 CoordinateToWorldSpace(Vector3 vector)
Parameters
Type |
Name |
Description |
Vector3 |
vector |
|
Returns
WorldToCoordinateSpace(Quaternion)
Converts world space rotation to coordinate space rotation.
For example, applying this transform to Quaternion.identity would return the quaternion of the local application's world space origin in the coordinate space.
Declaration
Quaternion WorldToCoordinateSpace(Quaternion quaternion)
Parameters
Type |
Name |
Description |
Quaternion |
quaternion |
|
Returns
Type |
Description |
Quaternion |
|
WorldToCoordinateSpace(Vector3)
Converts world space position to coordinate space position.
For example, applying this transform to Vector3.zero would return the position of the local application's world space origin in the coordinate space.
Declaration
Vector3 WorldToCoordinateSpace(Vector3 vector)
Parameters
Type |
Name |
Description |
Vector3 |
vector |
|
Returns
Events
StateChanged
Occurs when the value of the State property has changed.
Declaration
event Action StateChanged
Event Type