docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct double3

    A 3 component vector of doubles.

    Implements
    IEquatable<double3>
    IFormattable
    Inherited Members
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.Mathematics
    Assembly: solution.dll
    Syntax
    [Serializable]
    public struct double3 : IEquatable<double3>, IFormattable

    Constructors

    Name Description
    double3(bool)

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

    double3(double)

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

    double3(double, double, double)

    Constructs a double3 vector from three double values.

    double3(double, double2)

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

    double3(int)

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

    double3(float)

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

    double3(uint)

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

    double3(bool3)

    Constructs a double3 vector from a bool3 vector by componentwise conversion.

    double3(double2, double)

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

    double3(double3)

    Constructs a double3 vector from a double3 vector.

    double3(float3)

    Constructs a double3 vector from a float3 vector by componentwise conversion.

    double3(half)

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

    double3(half3)

    Constructs a double3 vector from a half3 vector by componentwise conversion.

    double3(int3)

    Constructs a double3 vector from a int3 vector by componentwise conversion.

    double3(uint3)

    Constructs a double3 vector from a uint3 vector by componentwise conversion.

    Fields

    Name Description
    x

    x component of the vector.

    y

    y component of the vector.

    z

    z component of the vector.

    zero

    double3 zero value.

    Properties

    Name Description
    this[int]

    Returns the double element at a specified index.

    Methods

    Name Description
    Equals(object)

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

    Equals(double3)

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

    GetHashCode()

    Returns a hash code for the double3.

    ToString()

    Returns a string representation of the double3.

    ToString(string, IFormatProvider)

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

    Operators

    Name Description
    operator +(double, double3)

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

    operator +(double3, double)

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

    operator +(double3, double3)

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

    operator --(double3)

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

    operator /(double, double3)

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

    operator /(double3, double)

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

    operator /(double3, double3)

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

    operator ==(double, double3)

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

    operator ==(double3, double)

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

    operator ==(double3, double3)

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

    explicit operator double3(bool)

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

    explicit operator double3(bool3)

    Explicitly converts a bool3 vector to a double3 vector by componentwise conversion.

    operator >(double, double3)

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

    operator >(double3, double)

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

    operator >(double3, double3)

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

    operator >=(double, double3)

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

    operator >=(double3, double)

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

    operator >=(double3, double3)

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

    implicit operator double3(double)

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

    implicit operator double3(int)

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

    implicit operator double3(float)

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

    implicit operator double3(uint)

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

    implicit operator double3(float3)

    Implicitly converts a float3 vector to a double3 vector by componentwise conversion.

    implicit operator double3(half)

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

    implicit operator double3(half3)

    Implicitly converts a half3 vector to a double3 vector by componentwise conversion.

    implicit operator double3(int3)

    Implicitly converts a int3 vector to a double3 vector by componentwise conversion.

    implicit operator double3(uint3)

    Implicitly converts a uint3 vector to a double3 vector by componentwise conversion.

    operator ++(double3)

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

    operator !=(double, double3)

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

    operator !=(double3, double)

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

    operator !=(double3, double3)

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

    operator <(double, double3)

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

    operator <(double3, double)

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

    operator <(double3, double3)

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

    operator <=(double, double3)

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

    operator <=(double3, double)

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

    operator <=(double3, double3)

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

    operator %(double, double3)

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

    operator %(double3, double)

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

    operator %(double3, double3)

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

    operator *(double, double3)

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

    operator *(double3, double)

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

    operator *(double3, double3)

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

    operator -(double, double3)

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

    operator -(double3, double)

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

    operator -(double3, double3)

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

    operator -(double3)

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

    operator +(double3)

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

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)