docs.unity3d.com
    Show / Hide Table of Contents

    Struct Math.MTransform

    A transform in matrix format

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Physics
    Syntax
    public struct MTransform : IEquatable<Math.MTransform>

    Constructors

    MTransform(float3x3, float3)

    Constructor.

    Declaration
    public MTransform(float3x3 rotation, float3 translation)
    Parameters
    Type Name Description
    float3x3 rotation

    The rotation.

    float3 translation

    The translation.

    MTransform(quaternion, float3)

    Constructor.

    Declaration
    public MTransform(quaternion rotation, float3 translation)
    Parameters
    Type Name Description
    quaternion rotation

    The rotation.

    float3 translation

    The translation.

    MTransform(RigidTransform)

    Constructor.

    Declaration
    public MTransform(RigidTransform transform)
    Parameters
    Type Name Description
    RigidTransform transform

    The transform.

    Fields

    Rotation

    The rotation.

    Declaration
    public float3x3 Rotation
    Field Value
    Type Description
    float3x3

    Translation

    The translation.

    Declaration
    public float3 Translation
    Field Value
    Type Description
    float3

    Properties

    Identity

    Gets the identity.

    Declaration
    public static readonly Math.MTransform Identity { get; }
    Property Value
    Type Description
    Math.MTransform

    The identity.

    InverseRotation

    Gets the inverse rotation.

    Declaration
    public readonly float3x3 InverseRotation { get; }
    Property Value
    Type Description
    float3x3

    The inverse rotation.

    Methods

    Equals(Math.MTransform)

    Tests if this MTransform is considered equal to another.

    Declaration
    public bool Equals(Math.MTransform other)
    Parameters
    Type Name Description
    Math.MTransform other

    The m transform to compare to this object.

    Returns
    Type Description
    Boolean

    True if the objects are considered equal, false if they are not.

    Implements
    IEquatable<T>.Equals(T)
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023