Struct float2
- Namespace
- Misaki.HighPerformance.Mathematics
- Assembly
- Misaki.HighPerformance.Mathematics.dll
[NumericType(typeof(float), 4, 2, 1, "global::Misaki.HighPerformance.Mathematics.float", true, true, null, null)]
[NumericConvertable("(float){v}.{c}", new Type[] { typeof(int2), typeof(uint2), typeof(double2), typeof(bool2) })]
[NumericConvertable("(float){v}", new Type[] { typeof(int), typeof(uint), typeof(double) })]
public struct float2 : IEquatable<float2>
- Implements
- Inherited Members
- Extension Methods
Constructors
float2(bool2)
public float2(bool2 v)
Parameters
vbool2
float2(double2)
public float2(double2 v)
Parameters
vdouble2
float2(float2)
public float2(float2 xy)
Parameters
xyfloat2
float2(int2)
public float2(int2 v)
Parameters
vint2
float2(uint2)
public float2(uint2 v)
Parameters
vuint2
float2(double)
public float2(double v)
Parameters
vdouble
float2(int)
public float2(int v)
Parameters
vint
float2(ReadOnlySpan<float>)
public float2(ReadOnlySpan<float> values)
Parameters
valuesReadOnlySpan<float>
float2(float)
public float2(float value)
Parameters
valuefloat
float2(float, float)
public float2(float x, float y)
Parameters
float2(uint)
public float2(uint v)
Parameters
vuint
Fields
x
public float x
Field Value
y
public float y
Field Value
Properties
this[int]
public ref float this[int index] { get; }
Parameters
indexint
Property Value
one
public static float2 one { get; }
Property Value
unitX
public static float2 unitX { get; }
Property Value
unitY
public static float2 unitY { get; }
Property Value
xx
[JsonIgnore]
public readonly float2 xx { get; }
Property Value
xxx
[JsonIgnore]
public readonly float3 xxx { get; }
Property Value
xxxx
[JsonIgnore]
public readonly float4 xxxx { get; }
Property Value
xxxy
[JsonIgnore]
public readonly float4 xxxy { get; }
Property Value
xxy
[JsonIgnore]
public readonly float3 xxy { get; }
Property Value
xxyx
[JsonIgnore]
public readonly float4 xxyx { get; }
Property Value
xxyy
[JsonIgnore]
public readonly float4 xxyy { get; }
Property Value
xy
[JsonIgnore]
public float2 xy { get; set; }
Property Value
xyx
[JsonIgnore]
public readonly float3 xyx { get; }
Property Value
xyxx
[JsonIgnore]
public readonly float4 xyxx { get; }
Property Value
xyxy
[JsonIgnore]
public readonly float4 xyxy { get; }
Property Value
xyy
[JsonIgnore]
public readonly float3 xyy { get; }
Property Value
xyyx
[JsonIgnore]
public readonly float4 xyyx { get; }
Property Value
xyyy
[JsonIgnore]
public readonly float4 xyyy { get; }
Property Value
yx
[JsonIgnore]
public float2 yx { get; set; }
Property Value
yxx
[JsonIgnore]
public readonly float3 yxx { get; }
Property Value
yxxx
[JsonIgnore]
public readonly float4 yxxx { get; }
Property Value
yxxy
[JsonIgnore]
public readonly float4 yxxy { get; }
Property Value
yxy
[JsonIgnore]
public readonly float3 yxy { get; }
Property Value
yxyx
[JsonIgnore]
public readonly float4 yxyx { get; }
Property Value
yxyy
[JsonIgnore]
public readonly float4 yxyy { get; }
Property Value
yy
[JsonIgnore]
public readonly float2 yy { get; }
Property Value
yyx
[JsonIgnore]
public readonly float3 yyx { get; }
Property Value
yyxx
[JsonIgnore]
public readonly float4 yyxx { get; }
Property Value
yyxy
[JsonIgnore]
public readonly float4 yyxy { get; }
Property Value
yyy
[JsonIgnore]
public readonly float3 yyy { get; }
Property Value
yyyx
[JsonIgnore]
public readonly float4 yyyx { get; }
Property Value
yyyy
[JsonIgnore]
public readonly float4 yyyy { get; }
Property Value
zero
public static float2 zero { get; }
Property Value
Methods
Equals(float2)
Indicates whether the current object is equal to another object of the same type.
public readonly bool Equals(float2 other)
Parameters
otherfloat2An 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 +(float2, float2)
public static float2 operator +(float2 lhs, float2 rhs)
Parameters
Returns
operator +(float2, float)
public static float2 operator +(float2 lhs, float rhs)
Parameters
Returns
operator +(float, float2)
public static float2 operator +(float lhs, float2 rhs)
Parameters
Returns
operator +=(float2)
public void operator +=(float2 other)
Parameters
otherfloat2
operator --(float2)
public static float2 operator --(float2 value)
Parameters
valuefloat2
Returns
operator /(float2, float2)
public static float2 operator /(float2 lhs, float2 rhs)
Parameters
Returns
operator /(float2, float)
public static float2 operator /(float2 lhs, float rhs)
Parameters
Returns
operator /(float, float2)
public static float2 operator /(float lhs, float2 rhs)
Parameters
Returns
operator /=(float2)
public void operator /=(float2 other)
Parameters
otherfloat2
operator ==(float2, float2)
public static bool2 operator ==(float2 lhs, float2 rhs)
Parameters
Returns
operator >(float2, float2)
public static bool2 operator >(float2 lhs, float2 rhs)
Parameters
Returns
operator >=(float2, float2)
public static bool2 operator >=(float2 lhs, float2 rhs)
Parameters
Returns
implicit operator float2(bool2)
public static implicit operator float2(bool2 v)
Parameters
vbool2
Returns
implicit operator float2(double2)
public static implicit operator float2(double2 v)
Parameters
vdouble2
Returns
implicit operator float2(int2)
public static implicit operator float2(int2 v)
Parameters
vint2
Returns
implicit operator float2(uint2)
public static implicit operator float2(uint2 v)
Parameters
vuint2
Returns
implicit operator float2(double)
public static implicit operator float2(double v)
Parameters
vdouble
Returns
implicit operator float2(int)
public static implicit operator float2(int v)
Parameters
vint
Returns
implicit operator float2(ReadOnlySpan<float>)
public static implicit operator float2(ReadOnlySpan<float> value)
Parameters
valueReadOnlySpan<float>
Returns
implicit operator float2(float)
public static implicit operator float2(float value)
Parameters
valuefloat
Returns
implicit operator float2(uint)
public static implicit operator float2(uint v)
Parameters
vuint
Returns
operator ++(float2)
public static float2 operator ++(float2 value)
Parameters
valuefloat2
Returns
operator !=(float2, float2)
public static bool2 operator !=(float2 lhs, float2 rhs)
Parameters
Returns
operator <(float2, float2)
public static bool2 operator <(float2 lhs, float2 rhs)
Parameters
Returns
operator <=(float2, float2)
public static bool2 operator <=(float2 lhs, float2 rhs)
Parameters
Returns
operator %(float2, float2)
public static float2 operator %(float2 lhs, float2 rhs)
Parameters
Returns
operator %(float2, float)
public static float2 operator %(float2 lhs, float rhs)
Parameters
Returns
operator %(float, float2)
public static float2 operator %(float lhs, float2 rhs)
Parameters
Returns
operator %=(float2)
public void operator %=(float2 other)
Parameters
otherfloat2
operator *=(float2)
public void operator *=(float2 other)
Parameters
otherfloat2
operator *(float2, float2)
public static float2 operator *(float2 lhs, float2 rhs)
Parameters
Returns
operator *(float2, float)
public static float2 operator *(float2 lhs, float rhs)
Parameters
Returns
operator *(float, float2)
public static float2 operator *(float lhs, float2 rhs)
Parameters
Returns
operator -(float2, float2)
public static float2 operator -(float2 lhs, float2 rhs)
Parameters
Returns
operator -(float2, float)
public static float2 operator -(float2 lhs, float rhs)
Parameters
Returns
operator -(float, float2)
public static float2 operator -(float lhs, float2 rhs)
Parameters
Returns
operator -=(float2)
public void operator -=(float2 other)
Parameters
otherfloat2
operator -(float2)
public static float2 operator -(float2 value)
Parameters
valuefloat2
Returns
operator +(float2)
public static float2 operator +(float2 value)
Parameters
valuefloat2