docs.unity3d.com
    Show / Hide Table of Contents

    Class GfMatrix4f

    Inheritance
    Object
    GfMatrix4f
    Inherited Members
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: pxr
    Syntax
    public class GfMatrix4f : IDisposable

    Constructors

    GfMatrix4f()

    Declaration
    public GfMatrix4f()

    GfMatrix4f(GfMatrix4d)

    Declaration
    public GfMatrix4f(GfMatrix4d m)
    Parameters
    Type Name Description
    GfMatrix4d m

    GfMatrix4f(GfRotation, GfVec3f)

    Declaration
    public GfMatrix4f(GfRotation rotate, GfVec3f translate)
    Parameters
    Type Name Description
    GfRotation rotate
    GfVec3f translate

    GfMatrix4f(GfVec4f)

    Declaration
    public GfMatrix4f(GfVec4f v)
    Parameters
    Type Name Description
    GfVec4f v

    GfMatrix4f(StdDoubleVector, StdDoubleVector, StdDoubleVector, StdDoubleVector)

    Declaration
    public GfMatrix4f(StdDoubleVector r0, StdDoubleVector r1, StdDoubleVector r2, StdDoubleVector r3)
    Parameters
    Type Name Description
    StdDoubleVector r0
    StdDoubleVector r1
    StdDoubleVector r2
    StdDoubleVector r3

    GfMatrix4f(StdDoubleVectorVector)

    Declaration
    public GfMatrix4f(StdDoubleVectorVector v)
    Parameters
    Type Name Description
    StdDoubleVectorVector v

    GfMatrix4f(StdFloatVector, StdFloatVector, StdFloatVector, StdFloatVector)

    Declaration
    public GfMatrix4f(StdFloatVector r0, StdFloatVector r1, StdFloatVector r2, StdFloatVector r3)
    Parameters
    Type Name Description
    StdFloatVector r0
    StdFloatVector r1
    StdFloatVector r2
    StdFloatVector r3

    GfMatrix4f(StdFloatVectorVector)

    Declaration
    public GfMatrix4f(StdFloatVectorVector v)
    Parameters
    Type Name Description
    StdFloatVectorVector v

    GfMatrix4f(Single)

    Declaration
    public GfMatrix4f(float s)
    Parameters
    Type Name Description
    Single s

    GfMatrix4f(Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single)

    Declaration
    public GfMatrix4f(float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23, float m30, float m31, float m32, float m33)
    Parameters
    Type Name Description
    Single m00
    Single m01
    Single m02
    Single m03
    Single m10
    Single m11
    Single m12
    Single m13
    Single m20
    Single m21
    Single m22
    Single m23
    Single m30
    Single m31
    Single m32
    Single m33

    Fields

    numColumns

    Declaration
    public static readonly uint numColumns
    Field Value
    Type Description
    UInt32

    numRows

    Declaration
    public static readonly uint numRows
    Field Value
    Type Description
    UInt32

    swigCMemOwn

    Declaration
    protected bool swigCMemOwn
    Field Value
    Type Description
    Boolean

    Methods

    CopyFromArray(Single[])

    Declaration
    public void CopyFromArray(float[] src)
    Parameters
    Type Name Description
    Single[] src

    CopyToArray(Single[])

    Declaration
    public void CopyToArray(float[] dest)
    Parameters
    Type Name Description
    Single[] dest

    data()

    Declaration
    public SWIGTYPE_p_float data()
    Returns
    Type Description
    SWIGTYPE_p_float

    DecomposeRotation(GfVec3f, GfVec3f, GfVec3f)

    Declaration
    public GfVec3f DecomposeRotation(GfVec3f axis0, GfVec3f axis1, GfVec3f axis2)
    Parameters
    Type Name Description
    GfVec3f axis0
    GfVec3f axis1
    GfVec3f axis2
    Returns
    Type Description
    GfVec3f

    Dispose()

    Declaration
    public virtual void Dispose()
    Implements
    IDisposable.Dispose()

    Equals(GfMatrix4f, GfMatrix4f)

    Declaration
    public static bool Equals(GfMatrix4f lhs, GfMatrix4f rhs)
    Parameters
    Type Name Description
    GfMatrix4f lhs
    GfMatrix4f rhs
    Returns
    Type Description
    Boolean

    Equals(Object)

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

    ExtractRotation()

    Declaration
    public GfRotation ExtractRotation()
    Returns
    Type Description
    GfRotation

    ExtractRotationMatrix()

    Declaration
    public GfMatrix3f ExtractRotationMatrix()
    Returns
    Type Description
    GfMatrix3f

    ExtractRotationQuat()

    Declaration
    public GfQuatf ExtractRotationQuat()
    Returns
    Type Description
    GfQuatf

    ExtractTranslation()

    Declaration
    public GfVec3f ExtractTranslation()
    Returns
    Type Description
    GfVec3f

    Factor(GfMatrix4f, GfVec3f, GfMatrix4f, GfVec3f, GfMatrix4f)

    Declaration
    public bool Factor(GfMatrix4f r, GfVec3f s, GfMatrix4f u, GfVec3f t, GfMatrix4f p)
    Parameters
    Type Name Description
    GfMatrix4f r
    GfVec3f s
    GfMatrix4f u
    GfVec3f t
    GfMatrix4f p
    Returns
    Type Description
    Boolean

    Factor(GfMatrix4f, GfVec3f, GfMatrix4f, GfVec3f, GfMatrix4f, Single)

    Declaration
    public bool Factor(GfMatrix4f r, GfVec3f s, GfMatrix4f u, GfVec3f t, GfMatrix4f p, float eps)
    Parameters
    Type Name Description
    GfMatrix4f r
    GfVec3f s
    GfMatrix4f u
    GfVec3f t
    GfMatrix4f p
    Single eps
    Returns
    Type Description
    Boolean

    Finalize()

    Declaration
    protected void Finalize()

    Get(SWIGTYPE_p_a_4__float)

    Declaration
    public SWIGTYPE_p_float Get(SWIGTYPE_p_a_4__float m)
    Parameters
    Type Name Description
    SWIGTYPE_p_a_4__float m
    Returns
    Type Description
    SWIGTYPE_p_float

    GetColumn(Int32)

    Declaration
    public GfVec4f GetColumn(int i)
    Parameters
    Type Name Description
    Int32 i
    Returns
    Type Description
    GfVec4f

    GetDeterminant()

    Declaration
    public double GetDeterminant()
    Returns
    Type Description
    Double

    GetDeterminant3()

    Declaration
    public double GetDeterminant3()
    Returns
    Type Description
    Double

    GetHandedness()

    Declaration
    public double GetHandedness()
    Returns
    Type Description
    Double

    GetHashCode()

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

    GetInverse()

    Declaration
    public GfMatrix4f GetInverse()
    Returns
    Type Description
    GfMatrix4f

    GetInverse(ref Double)

    Declaration
    public GfMatrix4f GetInverse(ref double det)
    Parameters
    Type Name Description
    Double det
    Returns
    Type Description
    GfMatrix4f

    GetInverse(ref Double, Double)

    Declaration
    public GfMatrix4f GetInverse(ref double det, double eps)
    Parameters
    Type Name Description
    Double det
    Double eps
    Returns
    Type Description
    GfMatrix4f

    GetOrthonormalized()

    Declaration
    public GfMatrix4f GetOrthonormalized()
    Returns
    Type Description
    GfMatrix4f

    GetOrthonormalized(Boolean)

    Declaration
    public GfMatrix4f GetOrthonormalized(bool issueWarning)
    Parameters
    Type Name Description
    Boolean issueWarning
    Returns
    Type Description
    GfMatrix4f

    GetRow(Int32)

    Declaration
    public GfVec4f GetRow(int i)
    Parameters
    Type Name Description
    Int32 i
    Returns
    Type Description
    GfVec4f

    GetRow3(Int32)

    Declaration
    public GfVec3f GetRow3(int i)
    Parameters
    Type Name Description
    Int32 i
    Returns
    Type Description
    GfVec3f

    GetTranspose()

    Declaration
    public GfMatrix4f GetTranspose()
    Returns
    Type Description
    GfMatrix4f

    HasOrthogonalRows3()

    Declaration
    public bool HasOrthogonalRows3()
    Returns
    Type Description
    Boolean

    IsLeftHanded()

    Declaration
    public bool IsLeftHanded()
    Returns
    Type Description
    Boolean

    IsRightHanded()

    Declaration
    public bool IsRightHanded()
    Returns
    Type Description
    Boolean

    Orthonormalize()

    Declaration
    public bool Orthonormalize()
    Returns
    Type Description
    Boolean

    Orthonormalize(Boolean)

    Declaration
    public bool Orthonormalize(bool issueWarning)
    Parameters
    Type Name Description
    Boolean issueWarning
    Returns
    Type Description
    Boolean

    Set(Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single)

    Declaration
    public GfMatrix4f Set(float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23, float m30, float m31, float m32, float m33)
    Parameters
    Type Name Description
    Single m00
    Single m01
    Single m02
    Single m03
    Single m10
    Single m11
    Single m12
    Single m13
    Single m20
    Single m21
    Single m22
    Single m23
    Single m30
    Single m31
    Single m32
    Single m33
    Returns
    Type Description
    GfMatrix4f

    SetColumn(Int32, GfVec4f)

    Declaration
    public void SetColumn(int i, GfVec4f v)
    Parameters
    Type Name Description
    Int32 i
    GfVec4f v

    SetDiagonal(GfVec4f)

    Declaration
    public GfMatrix4f SetDiagonal(GfVec4f arg0)
    Parameters
    Type Name Description
    GfVec4f arg0
    Returns
    Type Description
    GfMatrix4f

    SetDiagonal(Single)

    Declaration
    public GfMatrix4f SetDiagonal(float s)
    Parameters
    Type Name Description
    Single s
    Returns
    Type Description
    GfMatrix4f

    SetIdentity()

    Declaration
    public GfMatrix4f SetIdentity()
    Returns
    Type Description
    GfMatrix4f

    SetLookAt(GfVec3f, GfRotation)

    Declaration
    public GfMatrix4f SetLookAt(GfVec3f eyePoint, GfRotation orientation)
    Parameters
    Type Name Description
    GfVec3f eyePoint
    GfRotation orientation
    Returns
    Type Description
    GfMatrix4f

    SetLookAt(GfVec3f, GfVec3f, GfVec3f)

    Declaration
    public GfMatrix4f SetLookAt(GfVec3f eyePoint, GfVec3f centerPoint, GfVec3f upDirection)
    Parameters
    Type Name Description
    GfVec3f eyePoint
    GfVec3f centerPoint
    GfVec3f upDirection
    Returns
    Type Description
    GfMatrix4f

    SetRotate(GfMatrix3f)

    Declaration
    public GfMatrix4f SetRotate(GfMatrix3f mx)
    Parameters
    Type Name Description
    GfMatrix3f mx
    Returns
    Type Description
    GfMatrix4f

    SetRotate(GfQuatf)

    Declaration
    public GfMatrix4f SetRotate(GfQuatf rot)
    Parameters
    Type Name Description
    GfQuatf rot
    Returns
    Type Description
    GfMatrix4f

    SetRotate(GfRotation)

    Declaration
    public GfMatrix4f SetRotate(GfRotation rot)
    Parameters
    Type Name Description
    GfRotation rot
    Returns
    Type Description
    GfMatrix4f

    SetRotateOnly(GfMatrix3f)

    Declaration
    public GfMatrix4f SetRotateOnly(GfMatrix3f mx)
    Parameters
    Type Name Description
    GfMatrix3f mx
    Returns
    Type Description
    GfMatrix4f

    SetRotateOnly(GfQuatf)

    Declaration
    public GfMatrix4f SetRotateOnly(GfQuatf rot)
    Parameters
    Type Name Description
    GfQuatf rot
    Returns
    Type Description
    GfMatrix4f

    SetRotateOnly(GfRotation)

    Declaration
    public GfMatrix4f SetRotateOnly(GfRotation rot)
    Parameters
    Type Name Description
    GfRotation rot
    Returns
    Type Description
    GfMatrix4f

    SetRow(Int32, GfVec4f)

    Declaration
    public void SetRow(int i, GfVec4f v)
    Parameters
    Type Name Description
    Int32 i
    GfVec4f v

    SetRow3(Int32, GfVec3f)

    Declaration
    public void SetRow3(int i, GfVec3f v)
    Parameters
    Type Name Description
    Int32 i
    GfVec3f v

    SetScale(GfVec3f)

    Declaration
    public GfMatrix4f SetScale(GfVec3f scaleFactors)
    Parameters
    Type Name Description
    GfVec3f scaleFactors
    Returns
    Type Description
    GfMatrix4f

    SetScale(Single)

    Declaration
    public GfMatrix4f SetScale(float scaleFactor)
    Parameters
    Type Name Description
    Single scaleFactor
    Returns
    Type Description
    GfMatrix4f

    SetTransform(GfMatrix3f, GfVec3f)

    Declaration
    public GfMatrix4f SetTransform(GfMatrix3f rotmx, GfVec3f translate)
    Parameters
    Type Name Description
    GfMatrix3f rotmx
    GfVec3f translate
    Returns
    Type Description
    GfMatrix4f

    SetTransform(GfRotation, GfVec3f)

    Declaration
    public GfMatrix4f SetTransform(GfRotation rotate, GfVec3f translate)
    Parameters
    Type Name Description
    GfRotation rotate
    GfVec3f translate
    Returns
    Type Description
    GfMatrix4f

    SetTranslate(GfVec3f)

    Declaration
    public GfMatrix4f SetTranslate(GfVec3f trans)
    Parameters
    Type Name Description
    GfVec3f trans
    Returns
    Type Description
    GfMatrix4f

    SetTranslateOnly(GfVec3f)

    Declaration
    public GfMatrix4f SetTranslateOnly(GfVec3f t)
    Parameters
    Type Name Description
    GfVec3f t
    Returns
    Type Description
    GfMatrix4f

    SetZero()

    Declaration
    public GfMatrix4f SetZero()
    Returns
    Type Description
    GfMatrix4f

    ToString()

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

    Transform(GfVec3d)

    Declaration
    public GfVec3d Transform(GfVec3d vec)
    Parameters
    Type Name Description
    GfVec3d vec
    Returns
    Type Description
    GfVec3d

    Transform(GfVec3f)

    Declaration
    public GfVec3f Transform(GfVec3f vec)
    Parameters
    Type Name Description
    GfVec3f vec
    Returns
    Type Description
    GfVec3f

    TransformAffine(GfVec3d)

    Declaration
    public GfVec3d TransformAffine(GfVec3d vec)
    Parameters
    Type Name Description
    GfVec3d vec
    Returns
    Type Description
    GfVec3d

    TransformAffine(GfVec3f)

    Declaration
    public GfVec3f TransformAffine(GfVec3f vec)
    Parameters
    Type Name Description
    GfVec3f vec
    Returns
    Type Description
    GfVec3f

    TransformDir(GfVec3d)

    Declaration
    public GfVec3d TransformDir(GfVec3d vec)
    Parameters
    Type Name Description
    GfVec3d vec
    Returns
    Type Description
    GfVec3d

    TransformDir(GfVec3f)

    Declaration
    public GfVec3f TransformDir(GfVec3f vec)
    Parameters
    Type Name Description
    GfVec3f vec
    Returns
    Type Description
    GfVec3f

    Operators

    Equality(GfMatrix4f, GfMatrix4f)

    Declaration
    public static bool operator ==(GfMatrix4f lhs, GfMatrix4f rhs)
    Parameters
    Type Name Description
    GfMatrix4f lhs
    GfMatrix4f rhs
    Returns
    Type Description
    Boolean

    Inequality(GfMatrix4f, GfMatrix4f)

    Declaration
    public static bool operator !=(GfMatrix4f lhs, GfMatrix4f rhs)
    Parameters
    Type Name Description
    GfMatrix4f lhs
    GfMatrix4f rhs
    Returns
    Type Description
    Boolean
    Back to top
    Copyright © 2023 Unity Technologies
    • 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 Thursday, October 19, 2023