Class SpatialCoordinateBase<TKey>
Inheritance
SpatialCoordinateBase<TKey>
Assembly: cs.temp.dll.dll
Syntax
public abstract class SpatialCoordinateBase<TKey> : ISpatialCoordinate
Type Parameters
Name |
Description |
TKey |
The type of Id for this coordinate.
|
Constructors
SpatialCoordinateBase(TKey)
Declaration
public SpatialCoordinateBase(TKey id)
Parameters
Type |
Name |
Description |
TKey |
id |
|
Properties
Id
The Id for this coordinate.
Declaration
Property Value
State
Gets the current state of the coordinate.
Declaration
public virtual 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
public abstract 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
public abstract Vector3 CoordinateToWorldSpace(Vector3 vector)
Parameters
Type |
Name |
Description |
Vector3 |
vector |
|
Returns
OnStateChanged()
Declaration
protected void OnStateChanged()
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
public abstract 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
public abstract Vector3 WorldToCoordinateSpace(Vector3 vector)
Parameters
Type |
Name |
Description |
Vector3 |
vector |
|
Returns
Events
StateChanged
Declaration
public event Action StateChanged
Event Type
Explicit Interface Implementations
ISpatialCoordinate.Id
Gets the Id representing this coordinate.
Declaration
string ISpatialCoordinate.Id { get; }
Returns
Implements