Struct double2
A 2 component vector of doubles.
Inherited Members
Namespace: Unity.Mathematics
Assembly: solution.dll
Syntax
[Serializable]
public struct double2 : IEquatable<double2>, IFormattable
Constructors
Name | Description |
---|---|
double2(bool) | 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(int) | Constructs a double2 vector from a single int value by converting it to double and assigning it to every component. |
double2(float) | Constructs a double2 vector from a single float value by converting it to double and assigning it to every component. |
double2(uint) | 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 |
---|---|
this[int] | Returns the double element at a specified index. |
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 |
---|---|
operator +(double, double2) | Returns the result of a componentwise addition operation on a double value and a double2 vector. |
operator +(double2, double) | Returns the result of a componentwise addition operation on a double2 vector and a double value. |
operator +(double2, double2) | Returns the result of a componentwise addition operation on two double2 vectors. |
operator --(double2) | Returns the result of a componentwise decrement operation on a double2 vector. |
operator /(double, double2) | Returns the result of a componentwise division operation on a double value and a double2 vector. |
operator /(double2, double) | Returns the result of a componentwise division operation on a double2 vector and a double value. |
operator /(double2, double2) | Returns the result of a componentwise division operation on two double2 vectors. |
operator ==(double, double2) | Returns the result of a componentwise equality operation on a double value and a double2 vector. |
operator ==(double2, double) | Returns the result of a componentwise equality operation on a double2 vector and a double value. |
operator ==(double2, double2) | Returns the result of a componentwise equality operation on two double2 vectors. |
explicit operator double2(bool) | Explicitly converts a single bool value to a double2 vector by converting it to double and assigning it to every component. |
explicit operator double2(bool2) | Explicitly converts a bool2 vector to a double2 vector by componentwise conversion. |
operator >(double, double2) | Returns the result of a componentwise greater than operation on a double value and a double2 vector. |
operator >(double2, double) | Returns the result of a componentwise greater than operation on a double2 vector and a double value. |
operator >(double2, double2) | Returns the result of a componentwise greater than operation on two double2 vectors. |
operator >=(double, double2) | Returns the result of a componentwise greater or equal operation on a double value and a double2 vector. |
operator >=(double2, double) | Returns the result of a componentwise greater or equal operation on a double2 vector and a double value. |
operator >=(double2, double2) | Returns the result of a componentwise greater or equal operation on two double2 vectors. |
implicit operator double2(double) | Implicitly converts a single double value to a double2 vector by assigning it to every component. |
implicit operator double2(int) | Implicitly converts a single int value to a double2 vector by converting it to double and assigning it to every component. |
implicit operator double2(float) | Implicitly converts a single float value to a double2 vector by converting it to double and assigning it to every component. |
implicit operator double2(uint) | Implicitly converts a single uint value to a double2 vector by converting it to double and assigning it to every component. |
implicit operator double2(float2) | Implicitly converts a float2 vector to a double2 vector by componentwise conversion. |
implicit operator double2(half) | Implicitly converts a single half value to a double2 vector by converting it to double and assigning it to every component. |
implicit operator double2(half2) | Implicitly converts a half2 vector to a double2 vector by componentwise conversion. |
implicit operator double2(int2) | Implicitly converts a int2 vector to a double2 vector by componentwise conversion. |
implicit operator double2(uint2) | Implicitly converts a uint2 vector to a double2 vector by componentwise conversion. |
operator ++(double2) | Returns the result of a componentwise increment operation on a double2 vector. |
operator !=(double, double2) | Returns the result of a componentwise not equal operation on a double value and a double2 vector. |
operator !=(double2, double) | Returns the result of a componentwise not equal operation on a double2 vector and a double value. |
operator !=(double2, double2) | Returns the result of a componentwise not equal operation on two double2 vectors. |
operator <(double, double2) | Returns the result of a componentwise less than operation on a double value and a double2 vector. |
operator <(double2, double) | Returns the result of a componentwise less than operation on a double2 vector and a double value. |
operator <(double2, double2) | Returns the result of a componentwise less than operation on two double2 vectors. |
operator <=(double, double2) | Returns the result of a componentwise less or equal operation on a double value and a double2 vector. |
operator <=(double2, double) | Returns the result of a componentwise less or equal operation on a double2 vector and a double value. |
operator <=(double2, double2) | Returns the result of a componentwise less or equal operation on two double2 vectors. |
operator %(double, double2) | Returns the result of a componentwise modulus operation on a double value and a double2 vector. |
operator %(double2, double) | Returns the result of a componentwise modulus operation on a double2 vector and a double value. |
operator %(double2, double2) | Returns the result of a componentwise modulus operation on two double2 vectors. |
operator *(double, double2) | Returns the result of a componentwise multiplication operation on a double value and a double2 vector. |
operator *(double2, double) | Returns the result of a componentwise multiplication operation on a double2 vector and a double value. |
operator *(double2, double2) | Returns the result of a componentwise multiplication operation on two double2 vectors. |
operator -(double, double2) | Returns the result of a componentwise subtraction operation on a double value and a double2 vector. |
operator -(double2, double) | Returns the result of a componentwise subtraction operation on a double2 vector and a double value. |
operator -(double2, double2) | Returns the result of a componentwise subtraction operation on two double2 vectors. |
operator -(double2) | Returns the result of a componentwise unary minus operation on a double2 vector. |
operator +(double2) | Returns the result of a componentwise unary plus operation on a double2 vector. |