[ Web Proxy ]
URL:
Viewing: https://docs.unity3d.com/ScriptReference/Unity.Mathematics.double2x2.html [Back]  [Original]

Unity - Scripting API: double2x2
Version: Unity 6.5 (6000.5)
    • Supported
    • Legacy
    LanguageEnglish
    • C#

    double2x2

    struct in Unity.Mathematics

    Suggest a change

    Success!

    Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

    Close

    Submission failed

    For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

    Close
    Your name Your email Suggestion* Submit suggestion

    Cancel

    Description

    A 2x2 matrix of doubles.

    Static Properties

    Property Description
    identitydouble2x2 identity transform.
    zerodouble2x2 zero value.

    Properties

    Property Description
    c0Column 0 of the matrix.
    c1Column 1 of the matrix.
    this[int]Returns the double2 element at a specified index.

    Constructors

    Constructor Description
    double2x2Constructs a double2x2 matrix from two double2 vectors.

    Public Methods

    Method Description
    EqualsReturns true if the double2x2 is equal to a given double2x2, false otherwise.
    GetHashCodeReturns a hash code for the double2x2.
    ToStringReturns a string representation of the double2x2.

    Operators

    Operator Description
    double2x2Implicitly converts a single double value to a double2x2 matrix by assigning it to every component.
    double2x2Explicitly converts a single bool value to a double2x2 matrix by converting it to double and assigning it to every component.
    double2x2Explicitly converts a bool2x2 matrix to a double2x2 matrix by componentwise conversion.
    double2x2Implicitly converts a single int value to a double2x2 matrix by converting it to double and assigning it to every component.
    double2x2Implicitly converts a int2x2 matrix to a double2x2 matrix by componentwise conversion.
    double2x2Implicitly converts a single uint value to a double2x2 matrix by converting it to double and assigning it to every component.
    double2x2Implicitly converts a uint2x2 matrix to a double2x2 matrix by componentwise conversion.
    double2x2Implicitly converts a single float value to a double2x2 matrix by converting it to double and assigning it to every component.
    double2x2Implicitly converts a float2x2 matrix to a double2x2 matrix by componentwise conversion.
    operator -Returns the result of a componentwise subtraction operation on two double2x2 matrices.
    operator --Returns the result of a componentwise decrement operation on a double2x2 matrix.
    operator !=Returns the result of a componentwise not equal operation on two double2x2 matrices.
    operator *Returns the result of a componentwise multiplication operation on two double2x2 matrices.
    operator /Returns the result of a componentwise division operation on two double2x2 matrices.
    operator %Returns the result of a componentwise modulus operation on two double2x2 matrices.
    operator +Returns the result of a componentwise addition operation on two double2x2 matrices.
    operator +Returns the result of a componentwise unary plus operation on a double2x2 matrix.
    operator ++Returns the result of a componentwise increment operation on a double2x2 matrix.
    operator <Returns the result of a componentwise less than operation on two double2x2 matrices.
    operator <=Returns the result of a componentwise less or equal operation on two double2x2 matrices.
    operator ==Returns the result of a componentwise equality operation on two double2x2 matrices.
    operator >Returns the result of a componentwise greater than operation on two double2x2 matrices.
    operator >=Returns the result of a componentwise greater or equal operation on two double2x2 matrices.

    Web Proxy Viewer  |  New URL  |  Original Page