docs.unity.cn
    Show / Hide Table of Contents

    Struct double4

    A 4 component vector of doubles.

    Inherited Members
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Mathematics
    Syntax
    [Serializable]
    public struct double4 : IEquatable<double4>, IFormattable

    Constructors

    Name Description
    double4(Boolean)

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

    double4(Double)

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

    double4(Double, Double, Double, Double)

    Constructs a double4 vector from four double values.

    double4(Double, Double, double2)

    Constructs a double4 vector from two double values and a double2 vector.

    double4(Double, double2, Double)

    Constructs a double4 vector from a double value, a double2 vector and a double value.

    double4(Double, double3)

    Constructs a double4 vector from a double value and a double3 vector.

    double4(Int32)

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

    double4(Single)

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

    double4(UInt32)

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

    double4(bool4)

    Constructs a double4 vector from a bool4 vector by componentwise conversion.

    double4(double2, Double, Double)

    Constructs a double4 vector from a double2 vector and two double values.

    double4(double2, double2)

    Constructs a double4 vector from two double2 vectors.

    double4(double3, Double)

    Constructs a double4 vector from a double3 vector and a double value.

    double4(double4)

    Constructs a double4 vector from a double4 vector.

    double4(float4)

    Constructs a double4 vector from a float4 vector by componentwise conversion.

    double4(half)

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

    double4(half4)

    Constructs a double4 vector from a half4 vector by componentwise conversion.

    double4(int4)

    Constructs a double4 vector from a int4 vector by componentwise conversion.

    double4(uint4)

    Constructs a double4 vector from a uint4 vector by componentwise conversion.

    Fields

    Name Description
    w

    w component of the vector.

    x

    x component of the vector.

    y

    y component of the vector.

    z

    z component of the vector.

    zero

    double4 zero value.

    Properties

    Name Description
    Item[Int32]

    Returns the double element at a specified index.

    Methods

    Name Description
    Equals(Object)

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

    Equals(double4)

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

    GetHashCode()

    Returns a hash code for the double4.

    ToString()

    Returns a string representation of the double4.

    ToString(String, IFormatProvider)

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

    Operators

    Name Description
    Addition(Double, double4)

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

    Addition(double4, Double)

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

    Addition(double4, double4)

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

    Decrement(double4)

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

    Division(Double, double4)

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

    Division(double4, Double)

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

    Division(double4, double4)

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

    Equality(Double, double4)

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

    Equality(double4, Double)

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

    Equality(double4, double4)

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

    Explicit(Boolean to double4)

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

    Explicit(bool4 to double4)

    Explicitly converts a bool4 vector to a double4 vector by componentwise conversion.

    GreaterThan(Double, double4)

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

    GreaterThan(double4, Double)

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

    GreaterThan(double4, double4)

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

    GreaterThanOrEqual(Double, double4)

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

    GreaterThanOrEqual(double4, Double)

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

    GreaterThanOrEqual(double4, double4)

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

    Implicit(Double to double4)

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

    Implicit(Int32 to double4)

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

    Implicit(Single to double4)

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

    Implicit(UInt32 to double4)

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

    Implicit(float4 to double4)

    Implicitly converts a float4 vector to a double4 vector by componentwise conversion.

    Implicit(half to double4)

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

    Implicit(half4 to double4)

    Implicitly converts a half4 vector to a double4 vector by componentwise conversion.

    Implicit(int4 to double4)

    Implicitly converts a int4 vector to a double4 vector by componentwise conversion.

    Implicit(uint4 to double4)

    Implicitly converts a uint4 vector to a double4 vector by componentwise conversion.

    Increment(double4)

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

    Inequality(Double, double4)

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

    Inequality(double4, Double)

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

    Inequality(double4, double4)

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

    LessThan(Double, double4)

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

    LessThan(double4, Double)

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

    LessThan(double4, double4)

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

    LessThanOrEqual(Double, double4)

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

    LessThanOrEqual(double4, Double)

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

    LessThanOrEqual(double4, double4)

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

    Modulus(Double, double4)

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

    Modulus(double4, Double)

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

    Modulus(double4, double4)

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

    Multiply(Double, double4)

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

    Multiply(double4, Double)

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

    Multiply(double4, double4)

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

    Subtraction(Double, double4)

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

    Subtraction(double4, Double)

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

    Subtraction(double4, double4)

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

    UnaryNegation(double4)

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

    UnaryPlus(double4)

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

    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