mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Struct MixedRealityTransform

    Implements
    IEqualityComparer
    Inherited Members
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Microsoft.MixedReality.Toolkit.Utilities
    Assembly: cs.temp.dll.dll
    Syntax
    public struct MixedRealityTransform : IEqualityComparer

    Constructors

    MixedRealityTransform(Vector3, Quaternion, Vector3)

    Constructor.

    Declaration
    public MixedRealityTransform(Vector3 position, Quaternion rotation, Vector3 scale)
    Parameters
    Type Name Description
    Vector3 position
    Quaternion rotation
    Vector3 scale

    Properties

    Forward

    The Z axis of the pose in world space.

    Declaration
    public Vector3 Forward { get; }
    Property Value
    Type Description
    Vector3

    Identity

    The default value for a Six Dof Transform.

    Declaration
    public static MixedRealityTransform Identity { get; }
    Property Value
    Type Description
    MixedRealityTransform

    Position

    The position of the transform.

    Declaration
    public Vector3 Position { get; set; }
    Property Value
    Type Description
    Vector3

    Right

    The X axis of the pose in world space.

    Declaration
    public Vector3 Right { get; }
    Property Value
    Type Description
    Vector3

    Rotation

    The rotation of the transform.

    Declaration
    public Quaternion Rotation { get; set; }
    Property Value
    Type Description
    Quaternion

    Scale

    The scale of the transform.

    Declaration
    public Vector3 Scale { get; set; }
    Property Value
    Type Description
    Vector3

    Up

    The Y axis of the pose in world space.

    Declaration
    public Vector3 Up { get; }
    Property Value
    Type Description
    Vector3

    Methods

    Equals(MixedRealityTransform)

    Declaration
    public bool Equals(MixedRealityTransform other)
    Parameters
    Type Name Description
    MixedRealityTransform other
    Returns
    Type Description
    Boolean

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    ValueType.Equals(Object)

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    ValueType.GetHashCode()

    NewRotate(Quaternion)

    Create a transform with only given rotation

    Declaration
    public static MixedRealityTransform NewRotate(Quaternion rotation)
    Parameters
    Type Name Description
    Quaternion rotation
    Returns
    Type Description
    MixedRealityTransform

    NewScale(Vector3)

    Create a transform with only given scale

    Declaration
    public static MixedRealityTransform NewScale(Vector3 scale)
    Parameters
    Type Name Description
    Vector3 scale
    Returns
    Type Description
    MixedRealityTransform

    NewTranslate(Vector3)

    Create a transform with only given position

    Declaration
    public static MixedRealityTransform NewTranslate(Vector3 position)
    Parameters
    Type Name Description
    Vector3 position
    Returns
    Type Description
    MixedRealityTransform

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    ValueType.ToString()

    Operators

    Addition(MixedRealityTransform, MixedRealityTransform)

    Declaration
    public static MixedRealityTransform operator +(MixedRealityTransform left, MixedRealityTransform right)
    Parameters
    Type Name Description
    MixedRealityTransform left
    MixedRealityTransform right
    Returns
    Type Description
    MixedRealityTransform

    Equality(MixedRealityTransform, MixedRealityTransform)

    Declaration
    public static bool operator ==(MixedRealityTransform left, MixedRealityTransform right)
    Parameters
    Type Name Description
    MixedRealityTransform left
    MixedRealityTransform right
    Returns
    Type Description
    Boolean

    Inequality(MixedRealityTransform, MixedRealityTransform)

    Declaration
    public static bool operator !=(MixedRealityTransform left, MixedRealityTransform right)
    Parameters
    Type Name Description
    MixedRealityTransform left
    MixedRealityTransform right
    Returns
    Type Description
    Boolean

    Implements

    IEqualityComparer
    In This Article
    • Constructors
      • MixedRealityTransform(Vector3, Quaternion, Vector3)
    • Properties
      • Forward
      • Identity
      • Position
      • Right
      • Rotation
      • Scale
      • Up
    • Methods
      • Equals(MixedRealityTransform)
      • Equals(Object)
      • GetHashCode()
      • NewRotate(Quaternion)
      • NewScale(Vector3)
      • NewTranslate(Vector3)
      • ToString()
    • Operators
      • Addition(MixedRealityTransform, MixedRealityTransform)
      • Equality(MixedRealityTransform, MixedRealityTransform)
      • Inequality(MixedRealityTransform, MixedRealityTransform)
    • Implements
    Back to top Generated by DocFX