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