Table of Contents

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

v bool2

int2(double2)

public int2(double2 v)

Parameters

v double2

int2(float2)

public int2(float2 v)

Parameters

v float2

int2(int2)

public int2(int2 xy)

Parameters

xy int2

int2(uint2)

public int2(uint2 v)

Parameters

v uint2

int2(double)

public int2(double v)

Parameters

v double

int2(int)

public int2(int value)

Parameters

value int

int2(int, int)

public int2(int x, int y)

Parameters

x int
y int

int2(ReadOnlySpan<int>)

public int2(ReadOnlySpan<int> values)

Parameters

values ReadOnlySpan<int>

int2(float)

public int2(float v)

Parameters

v float

int2(uint)

public int2(uint v)

Parameters

v uint

Fields

x

public int x

Field Value

int

y

public int y

Field Value

int

Properties

this[int]

public ref int this[int index] { get; }

Parameters

index int

Property Value

int

one

public static int2 one { get; }

Property Value

int2

unitX

public static int2 unitX { get; }

Property Value

int2

unitY

public static int2 unitY { get; }

Property Value

int2

xx

[JsonIgnore]
public readonly int2 xx { get; }

Property Value

int2

xxx

[JsonIgnore]
public readonly int3 xxx { get; }

Property Value

int3

xxxx

[JsonIgnore]
public readonly int4 xxxx { get; }

Property Value

int4

xxxy

[JsonIgnore]
public readonly int4 xxxy { get; }

Property Value

int4

xxy

[JsonIgnore]
public readonly int3 xxy { get; }

Property Value

int3

xxyx

[JsonIgnore]
public readonly int4 xxyx { get; }

Property Value

int4

xxyy

[JsonIgnore]
public readonly int4 xxyy { get; }

Property Value

int4

xy

[JsonIgnore]
public int2 xy { get; set; }

Property Value

int2

xyx

[JsonIgnore]
public readonly int3 xyx { get; }

Property Value

int3

xyxx

[JsonIgnore]
public readonly int4 xyxx { get; }

Property Value

int4

xyxy

[JsonIgnore]
public readonly int4 xyxy { get; }

Property Value

int4

xyy

[JsonIgnore]
public readonly int3 xyy { get; }

Property Value

int3

xyyx

[JsonIgnore]
public readonly int4 xyyx { get; }

Property Value

int4

xyyy

[JsonIgnore]
public readonly int4 xyyy { get; }

Property Value

int4

yx

[JsonIgnore]
public int2 yx { get; set; }

Property Value

int2

yxx

[JsonIgnore]
public readonly int3 yxx { get; }

Property Value

int3

yxxx

[JsonIgnore]
public readonly int4 yxxx { get; }

Property Value

int4

yxxy

[JsonIgnore]
public readonly int4 yxxy { get; }

Property Value

int4

yxy

[JsonIgnore]
public readonly int3 yxy { get; }

Property Value

int3

yxyx

[JsonIgnore]
public readonly int4 yxyx { get; }

Property Value

int4

yxyy

[JsonIgnore]
public readonly int4 yxyy { get; }

Property Value

int4

yy

[JsonIgnore]
public readonly int2 yy { get; }

Property Value

int2

yyx

[JsonIgnore]
public readonly int3 yyx { get; }

Property Value

int3

yyxx

[JsonIgnore]
public readonly int4 yyxx { get; }

Property Value

int4

yyxy

[JsonIgnore]
public readonly int4 yyxy { get; }

Property Value

int4

yyy

[JsonIgnore]
public readonly int3 yyy { get; }

Property Value

int3

yyyx

[JsonIgnore]
public readonly int4 yyyx { get; }

Property Value

int4

yyyy

[JsonIgnore]
public readonly int4 yyyy { get; }

Property Value

int4

zero

public static int2 zero { get; }

Property Value

int2

Methods

Equals(int2)

Indicates whether the current object is equal to another object of the same type.

public readonly bool Equals(int2 other)

Parameters

other int2

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override readonly bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and 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

lhs int2
rhs int2

Returns

int2

operator +(int2, int)

public static int2 operator +(int2 lhs, int rhs)

Parameters

lhs int2
rhs int

Returns

int2

operator +(int, int2)

public static int2 operator +(int lhs, int2 rhs)

Parameters

lhs int
rhs int2

Returns

int2

operator +=(int2)

public void operator +=(int2 other)

Parameters

other int2

operator &(int2, int2)

public static int2 operator &(int2 lhs, int2 rhs)

Parameters

lhs int2
rhs int2

Returns

int2

operator |(int2, int2)

public static int2 operator |(int2 lhs, int2 rhs)

Parameters

lhs int2
rhs int2

Returns

int2

operator --(int2)

public static int2 operator --(int2 value)

Parameters

value int2

Returns

int2

operator /(int2, int2)

public static int2 operator /(int2 lhs, int2 rhs)

Parameters

lhs int2
rhs int2

Returns

int2

operator /(int2, int)

public static int2 operator /(int2 lhs, int rhs)

Parameters

lhs int2
rhs int

Returns

int2

operator /(int, int2)

public static int2 operator /(int lhs, int2 rhs)

Parameters

lhs int
rhs int2

Returns

int2

operator /=(int2)

public void operator /=(int2 other)

Parameters

other int2

operator ==(int2, int2)

public static bool2 operator ==(int2 lhs, int2 rhs)

Parameters

lhs int2
rhs int2

Returns

bool2

operator ^(int2, int2)

public static int2 operator ^(int2 lhs, int2 rhs)

Parameters

lhs int2
rhs int2

Returns

int2

operator >(int2, int2)

public static bool2 operator >(int2 lhs, int2 rhs)

Parameters

lhs int2
rhs int2

Returns

bool2

operator >=(int2, int2)

public static bool2 operator >=(int2 lhs, int2 rhs)

Parameters

lhs int2
rhs int2

Returns

bool2

implicit operator int2(bool2)

public static implicit operator int2(bool2 v)

Parameters

v bool2

Returns

int2

implicit operator int2(double2)

public static implicit operator int2(double2 v)

Parameters

v double2

Returns

int2

implicit operator int2(float2)

public static implicit operator int2(float2 v)

Parameters

v float2

Returns

int2

implicit operator int2(uint2)

public static implicit operator int2(uint2 v)

Parameters

v uint2

Returns

int2

implicit operator int2(double)

public static implicit operator int2(double v)

Parameters

v double

Returns

int2

implicit operator int2(int)

public static implicit operator int2(int value)

Parameters

value int

Returns

int2

implicit operator int2(ReadOnlySpan<int>)

public static implicit operator int2(ReadOnlySpan<int> value)

Parameters

value ReadOnlySpan<int>

Returns

int2

implicit operator int2(float)

public static implicit operator int2(float v)

Parameters

v float

Returns

int2

implicit operator int2(uint)

public static implicit operator int2(uint v)

Parameters

v uint

Returns

int2

operator ++(int2)

public static int2 operator ++(int2 value)

Parameters

value int2

Returns

int2

operator !=(int2, int2)

public static bool2 operator !=(int2 lhs, int2 rhs)

Parameters

lhs int2
rhs int2

Returns

bool2

operator <<(int2, int)

public static int2 operator <<(int2 x, int n)

Parameters

x int2
n int

Returns

int2

operator <(int2, int2)

public static bool2 operator <(int2 lhs, int2 rhs)

Parameters

lhs int2
rhs int2

Returns

bool2

operator <=(int2, int2)

public static bool2 operator <=(int2 lhs, int2 rhs)

Parameters

lhs int2
rhs int2

Returns

bool2

operator %(int2, int2)

public static int2 operator %(int2 lhs, int2 rhs)

Parameters

lhs int2
rhs int2

Returns

int2

operator %(int2, int)

public static int2 operator %(int2 lhs, int rhs)

Parameters

lhs int2
rhs int

Returns

int2

operator %(int, int2)

public static int2 operator %(int lhs, int2 rhs)

Parameters

lhs int
rhs int2

Returns

int2

operator %=(int2)

public void operator %=(int2 other)

Parameters

other int2

operator *=(int2)

public void operator *=(int2 other)

Parameters

other int2

operator *(int2, int2)

public static int2 operator *(int2 lhs, int2 rhs)

Parameters

lhs int2
rhs int2

Returns

int2

operator *(int2, int)

public static int2 operator *(int2 lhs, int rhs)

Parameters

lhs int2
rhs int

Returns

int2

operator *(int, int2)

public static int2 operator *(int lhs, int2 rhs)

Parameters

lhs int
rhs int2

Returns

int2

operator ~(int2)

public static int2 operator ~(int2 value)

Parameters

value int2

Returns

int2

operator >>(int2, int)

public static int2 operator >>(int2 x, int n)

Parameters

x int2
n int

Returns

int2

operator -(int2, int2)

public static int2 operator -(int2 lhs, int2 rhs)

Parameters

lhs int2
rhs int2

Returns

int2

operator -(int2, int)

public static int2 operator -(int2 lhs, int rhs)

Parameters

lhs int2
rhs int

Returns

int2

operator -(int, int2)

public static int2 operator -(int lhs, int2 rhs)

Parameters

lhs int
rhs int2

Returns

int2

operator -=(int2)

public void operator -=(int2 other)

Parameters

other int2

operator -(int2)

public static int2 operator -(int2 value)

Parameters

value int2

Returns

int2

operator +(int2)

public static int2 operator +(int2 value)

Parameters

value int2

Returns

int2