Show / Hide Table of Contents

    Interface ISpatialCoordinate

    This represents a spatial coordinate that can then be used to convert position and rotation to and from this coordinate space.

    Namespace: Microsoft.MixedReality.SpatialAlignment
    Assembly: cs.temp.dll.dll
    Syntax
    public interface ISpatialCoordinate

    Properties

    Id

    Gets the Id representing this coordinate.

    Declaration
    string Id { get; }
    Property Value
    Type Description
    String

    State

    Gets the current state of the coordinate.

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

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

    Events

    StateChanged

    Occurs when the value of the State property has changed.

    Declaration
    event Action StateChanged
    Event Type
    Type Description
    Action
    Back to top Generated by DocFX