Struct double2
- Namespace
- Misaki.HighPerformance.Mathematics
- Assembly
- Misaki.HighPerformance.Mathematics.dll
[NumericType(typeof(double), 8, 2, 1, "global::Misaki.HighPerformance.Mathematics.double", true, true, null, null)]
[NumericConvertable("(double){v}.{c}", new Type[] { typeof(int2), typeof(uint2), typeof(float2), typeof(bool2) })]
[NumericConvertable("(double){v}", new Type[] { typeof(int), typeof(uint), typeof(float) })]
public struct double2 : IEquatable<double2>
- Implements
- Inherited Members
- Extension Methods
Constructors
double2(bool2)
public double2(bool2 v)
Parameters
vbool2
double2(double2)
public double2(double2 xy)
Parameters
xydouble2
double2(float2)
public double2(float2 v)
Parameters
vfloat2
double2(int2)
public double2(int2 v)
Parameters
vint2
double2(uint2)
public double2(uint2 v)
Parameters
vuint2
double2(double)
public double2(double value)
Parameters
valuedouble
double2(double, double)
public double2(double x, double y)
Parameters
double2(int)
public double2(int v)
Parameters
vint
double2(ReadOnlySpan<double>)
public double2(ReadOnlySpan<double> values)
Parameters
valuesReadOnlySpan<double>
double2(float)
public double2(float v)
Parameters
vfloat
double2(uint)
public double2(uint v)
Parameters
vuint
Fields
__v
[JsonIgnore]
public Vector128<double> __v
Field Value
x
public double x
Field Value
y
public double y
Field Value
Properties
this[int]
public ref double this[int index] { get; }
Parameters
indexint
Property Value
one
public static double2 one { get; }
Property Value
unitX
public static double2 unitX { get; }
Property Value
unitY
public static double2 unitY { get; }
Property Value
xx
[JsonIgnore]
public readonly double2 xx { get; }
Property Value
xxx
[JsonIgnore]
public readonly double3 xxx { get; }
Property Value
xxxx
[JsonIgnore]
public readonly double4 xxxx { get; }
Property Value
xxxy
[JsonIgnore]
public readonly double4 xxxy { get; }
Property Value
xxy
[JsonIgnore]
public readonly double3 xxy { get; }
Property Value
xxyx
[JsonIgnore]
public readonly double4 xxyx { get; }
Property Value
xxyy
[JsonIgnore]
public readonly double4 xxyy { get; }
Property Value
xy
[JsonIgnore]
public double2 xy { get; set; }
Property Value
xyx
[JsonIgnore]
public readonly double3 xyx { get; }
Property Value
xyxx
[JsonIgnore]
public readonly double4 xyxx { get; }
Property Value
xyxy
[JsonIgnore]
public readonly double4 xyxy { get; }
Property Value
xyy
[JsonIgnore]
public readonly double3 xyy { get; }
Property Value
xyyx
[JsonIgnore]
public readonly double4 xyyx { get; }
Property Value
xyyy
[JsonIgnore]
public readonly double4 xyyy { get; }
Property Value
yx
[JsonIgnore]
public double2 yx { get; set; }
Property Value
yxx
[JsonIgnore]
public readonly double3 yxx { get; }
Property Value
yxxx
[JsonIgnore]
public readonly double4 yxxx { get; }
Property Value
yxxy
[JsonIgnore]
public readonly double4 yxxy { get; }
Property Value
yxy
[JsonIgnore]
public readonly double3 yxy { get; }
Property Value
yxyx
[JsonIgnore]
public readonly double4 yxyx { get; }
Property Value
yxyy
[JsonIgnore]
public readonly double4 yxyy { get; }
Property Value
yy
[JsonIgnore]
public readonly double2 yy { get; }
Property Value
yyx
[JsonIgnore]
public readonly double3 yyx { get; }
Property Value
yyxx
[JsonIgnore]
public readonly double4 yyxx { get; }
Property Value
yyxy
[JsonIgnore]
public readonly double4 yyxy { get; }
Property Value
yyy
[JsonIgnore]
public readonly double3 yyy { get; }
Property Value
yyyx
[JsonIgnore]
public readonly double4 yyyx { get; }
Property Value
yyyy
[JsonIgnore]
public readonly double4 yyyy { get; }
Property Value
zero
public static double2 zero { get; }
Property Value
Methods
Equals(double2)
Indicates whether the current object is equal to another object of the same type.
public readonly bool Equals(double2 other)
Parameters
otherdouble2An object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override readonly bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override readonly int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToString()
Returns the fully qualified type name of this instance.
public override readonly string ToString()
Returns
- string
The fully qualified type name.
Operators
operator +(double2, double2)
public static double2 operator +(double2 lhs, double2 rhs)
Parameters
Returns
operator +(double2, double)
public static double2 operator +(double2 lhs, double rhs)
Parameters
Returns
operator +(double, double2)
public static double2 operator +(double lhs, double2 rhs)
Parameters
Returns
operator +=(double2)
public void operator +=(double2 other)
Parameters
otherdouble2
operator --(double2)
public static double2 operator --(double2 value)
Parameters
valuedouble2
Returns
operator /(double2, double2)
public static double2 operator /(double2 lhs, double2 rhs)
Parameters
Returns
operator /(double2, double)
public static double2 operator /(double2 lhs, double rhs)
Parameters
Returns
operator /(double, double2)
public static double2 operator /(double lhs, double2 rhs)
Parameters
Returns
operator /=(double2)
public void operator /=(double2 other)
Parameters
otherdouble2
operator ==(double2, double2)
public static bool2 operator ==(double2 lhs, double2 rhs)
Parameters
Returns
operator >(double2, double2)
public static bool2 operator >(double2 lhs, double2 rhs)
Parameters
Returns
operator >=(double2, double2)
public static bool2 operator >=(double2 lhs, double2 rhs)
Parameters
Returns
implicit operator double2(bool2)
public static implicit operator double2(bool2 v)
Parameters
vbool2
Returns
implicit operator double2(float2)
public static implicit operator double2(float2 v)
Parameters
vfloat2
Returns
implicit operator double2(int2)
public static implicit operator double2(int2 v)
Parameters
vint2
Returns
implicit operator double2(uint2)
public static implicit operator double2(uint2 v)
Parameters
vuint2
Returns
implicit operator double2(double)
public static implicit operator double2(double value)
Parameters
valuedouble
Returns
implicit operator double2(int)
public static implicit operator double2(int v)
Parameters
vint
Returns
implicit operator double2(ReadOnlySpan<double>)
public static implicit operator double2(ReadOnlySpan<double> value)
Parameters
valueReadOnlySpan<double>
Returns
implicit operator double2(float)
public static implicit operator double2(float v)
Parameters
vfloat
Returns
implicit operator double2(uint)
public static implicit operator double2(uint v)
Parameters
vuint
Returns
operator ++(double2)
public static double2 operator ++(double2 value)
Parameters
valuedouble2
Returns
operator !=(double2, double2)
public static bool2 operator !=(double2 lhs, double2 rhs)
Parameters
Returns
operator <(double2, double2)
public static bool2 operator <(double2 lhs, double2 rhs)
Parameters
Returns
operator <=(double2, double2)
public static bool2 operator <=(double2 lhs, double2 rhs)
Parameters
Returns
operator %(double2, double2)
public static double2 operator %(double2 lhs, double2 rhs)
Parameters
Returns
operator %(double2, double)
public static double2 operator %(double2 lhs, double rhs)
Parameters
Returns
operator %(double, double2)
public static double2 operator %(double lhs, double2 rhs)
Parameters
Returns
operator %=(double2)
public void operator %=(double2 other)
Parameters
otherdouble2
operator *=(double2)
public void operator *=(double2 other)
Parameters
otherdouble2
operator *(double2, double2)
public static double2 operator *(double2 lhs, double2 rhs)
Parameters
Returns
operator *(double2, double)
public static double2 operator *(double2 lhs, double rhs)
Parameters
Returns
operator *(double, double2)
public static double2 operator *(double lhs, double2 rhs)
Parameters
Returns
operator -(double2, double2)
public static double2 operator -(double2 lhs, double2 rhs)
Parameters
Returns
operator -(double2, double)
public static double2 operator -(double2 lhs, double rhs)
Parameters
Returns
operator -(double, double2)
public static double2 operator -(double lhs, double2 rhs)
Parameters
Returns
operator -=(double2)
public void operator -=(double2 other)
Parameters
otherdouble2
operator -(double2)
public static double2 operator -(double2 value)
Parameters
valuedouble2
Returns
operator +(double2)
public static double2 operator +(double2 value)
Parameters
valuedouble2