Show / Hide Table of Contents

    Class SpatialCoordinateBase<TKey>

    Helper base class for implementations of ISpatialCoordinate.

    Inheritance
    Object
    SpatialCoordinateBase<TKey>
    SpatialCoordinateUnityBase<TKey>
    Implements
    ISpatialCoordinate
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.SpatialAlignment
    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
    public TKey Id { get; }
    Property Value
    Type Description
    TKey

    State

    Gets the current state of the coordinate.

    Declaration
    public virtual LocatedState State { get; }
    Property Value
    Type Description
    LocatedState

    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
    Type Description
    Vector3

    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
    Type Description
    Vector3

    Events

    StateChanged

    Declaration
    public event Action StateChanged
    Event Type
    Type Description
    Action

    Explicit Interface Implementations

    ISpatialCoordinate.Id

    Gets the Id representing this coordinate.

    Declaration
    string ISpatialCoordinate.Id { get; }
    Returns
    Type Description
    String

    Implements

    ISpatialCoordinate
    Back to top Generated by DocFX