docs.unity3d.com
    Show / Hide Table of Contents

    Struct double2

    A 2 component vector of doubles.

    Namespace: Unity.Mathematics
    Syntax
    public struct double2 : System.IEquatable<double2>, IFormattable

    Constructors

    Name Description
    double2(Boolean)

    Constructs a double2 vector from a single bool value by converting it to double and assigning it to every component.

    double2(Double)

    Constructs a double2 vector from a single double value by assigning it to every component.

    double2(Double, Double)

    Constructs a double2 vector from two double values.

    double2(Int32)

    Constructs a double2 vector from a single int value by converting it to double and assigning it to every component.

    double2(Single)

    Constructs a double2 vector from a single float value by converting it to double and assigning it to every component.

    double2(UInt32)

    Constructs a double2 vector from a single uint value by converting it to double and assigning it to every component.

    double2(bool2)

    Constructs a double2 vector from a bool2 vector by componentwise conversion.

    double2(double2)

    Constructs a double2 vector from a double2 vector.

    double2(float2)

    Constructs a double2 vector from a float2 vector by componentwise conversion.

    double2(half)

    Constructs a double2 vector from a single half value by converting it to double and assigning it to every component.

    double2(half2)

    Constructs a double2 vector from a half2 vector by componentwise conversion.

    double2(int2)

    Constructs a double2 vector from a int2 vector by componentwise conversion.

    double2(uint2)

    Constructs a double2 vector from a uint2 vector by componentwise conversion.

    Fields

    Name Description
    x

    x component of the vector.

    y

    y component of the vector.

    zero

    double2 zero value.

    Properties

    Name Description
    Item[Int32]

    Returns the double element at a specified index.

    xx

    Swizzles the vector.

    xxx

    Swizzles the vector.

    xxxx

    Swizzles the vector.

    xxxy

    Swizzles the vector.

    xxy

    Swizzles the vector.

    xxyx

    Swizzles the vector.

    xxyy

    Swizzles the vector.

    xy

    Swizzles the vector.

    xyx

    Swizzles the vector.

    xyxx

    Swizzles the vector.

    xyxy

    Swizzles the vector.

    xyy

    Swizzles the vector.

    xyyx

    Swizzles the vector.

    xyyy

    Swizzles the vector.

    yx

    Swizzles the vector.

    yxx

    Swizzles the vector.

    yxxx

    Swizzles the vector.

    yxxy

    Swizzles the vector.

    yxy

    Swizzles the vector.

    yxyx

    Swizzles the vector.

    yxyy

    Swizzles the vector.

    yy

    Swizzles the vector.

    yyx

    Swizzles the vector.

    yyxx

    Swizzles the vector.

    yyxy

    Swizzles the vector.

    yyy

    Swizzles the vector.

    yyyx

    Swizzles the vector.

    yyyy

    Swizzles the vector.

    Methods

    Name Description
    Equals(Object)

    Returns true if the double2 is equal to a given double2, false otherwise.

    Equals(double2)

    Returns true if the double2 is equal to a given double2, false otherwise.

    GetHashCode()

    Returns a hash code for the double2.

    ToString()

    Returns a string representation of the double2.

    ToString(String, IFormatProvider)

    Returns a string representation of the double2 using a specified format and culture-specific format information.

    Operators

    Name Description
    Addition(Double, double2)

    Returns the result of a componentwise addition operation on a double value and a double2 vector.

    Addition(double2, Double)

    Returns the result of a componentwise addition operation on a double2 vector and a double value.

    Addition(double2, double2)

    Returns the result of a componentwise addition operation on two double2 vectors.

    Decrement(double2)

    Returns the result of a componentwise decrement operation on a double2 vector.

    Division(Double, double2)

    Returns the result of a componentwise division operation on a double value and a double2 vector.

    Division(double2, Double)

    Returns the result of a componentwise division operation on a double2 vector and a double value.

    Division(double2, double2)

    Returns the result of a componentwise division operation on two double2 vectors.

    Equality(Double, double2)

    Returns the result of a componentwise equality operation on a double value and a double2 vector.

    Equality(double2, Double)

    Returns the result of a componentwise equality operation on a double2 vector and a double value.

    Equality(double2, double2)

    Returns the result of a componentwise equality operation on two double2 vectors.

    Explicit(Boolean to double2)

    Explicitly converts a single bool value to a double2 vector by converting it to double and assigning it to every component.

    Explicit(bool2 to double2)

    Explicitly converts a bool2 vector to a double2 vector by componentwise conversion.

    GreaterThan(Double, double2)

    Returns the result of a componentwise greater than operation on a double value and a double2 vector.

    GreaterThan(double2, Double)

    Returns the result of a componentwise greater than operation on a double2 vector and a double value.

    GreaterThan(double2, double2)

    Returns the result of a componentwise greater than operation on two double2 vectors.

    GreaterThanOrEqual(Double, double2)

    Returns the result of a componentwise greater or equal operation on a double value and a double2 vector.

    GreaterThanOrEqual(double2, Double)

    Returns the result of a componentwise greater or equal operation on a double2 vector and a double value.

    GreaterThanOrEqual(double2, double2)

    Returns the result of a componentwise greater or equal operation on two double2 vectors.

    Implicit(Double to double2)

    Implicitly converts a single double value to a double2 vector by assigning it to every component.

    Implicit(Int32 to double2)

    Implicitly converts a single int value to a double2 vector by converting it to double and assigning it to every component.

    Implicit(Single to double2)

    Implicitly converts a single float value to a double2 vector by converting it to double and assigning it to every component.

    Implicit(UInt32 to double2)

    Implicitly converts a single uint value to a double2 vector by converting it to double and assigning it to every component.

    Implicit(float2 to double2)

    Implicitly converts a float2 vector to a double2 vector by componentwise conversion.

    Implicit(half to double2)

    Implicitly converts a single half value to a double2 vector by converting it to double and assigning it to every component.

    Implicit(half2 to double2)

    Implicitly converts a half2 vector to a double2 vector by componentwise conversion.

    Implicit(int2 to double2)

    Implicitly converts a int2 vector to a double2 vector by componentwise conversion.

    Implicit(uint2 to double2)

    Implicitly converts a uint2 vector to a double2 vector by componentwise conversion.

    Increment(double2)

    Returns the result of a componentwise increment operation on a double2 vector.

    Inequality(Double, double2)

    Returns the result of a componentwise not equal operation on a double value and a double2 vector.

    Inequality(double2, Double)

    Returns the result of a componentwise not equal operation on a double2 vector and a double value.

    Inequality(double2, double2)

    Returns the result of a componentwise not equal operation on two double2 vectors.

    LessThan(Double, double2)

    Returns the result of a componentwise less than operation on a double value and a double2 vector.

    LessThan(double2, Double)

    Returns the result of a componentwise less than operation on a double2 vector and a double value.

    LessThan(double2, double2)

    Returns the result of a componentwise less than operation on two double2 vectors.

    LessThanOrEqual(Double, double2)

    Returns the result of a componentwise less or equal operation on a double value and a double2 vector.

    LessThanOrEqual(double2, Double)

    Returns the result of a componentwise less or equal operation on a double2 vector and a double value.

    LessThanOrEqual(double2, double2)

    Returns the result of a componentwise less or equal operation on two double2 vectors.

    Modulus(Double, double2)

    Returns the result of a componentwise modulus operation on a double value and a double2 vector.

    Modulus(double2, Double)

    Returns the result of a componentwise modulus operation on a double2 vector and a double value.

    Modulus(double2, double2)

    Returns the result of a componentwise modulus operation on two double2 vectors.

    Multiply(Double, double2)

    Returns the result of a componentwise multiplication operation on a double value and a double2 vector.

    Multiply(double2, Double)

    Returns the result of a componentwise multiplication operation on a double2 vector and a double value.

    Multiply(double2, double2)

    Returns the result of a componentwise multiplication operation on two double2 vectors.

    Subtraction(Double, double2)

    Returns the result of a componentwise subtraction operation on a double value and a double2 vector.

    Subtraction(double2, Double)

    Returns the result of a componentwise subtraction operation on a double2 vector and a double value.

    Subtraction(double2, double2)

    Returns the result of a componentwise subtraction operation on two double2 vectors.

    UnaryNegation(double2)

    Returns the result of a componentwise unary minus operation on a double2 vector.

    UnaryPlus(double2)

    Returns the result of a componentwise unary plus operation on a double2 vector.

    Back to top
    Terms of use
    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