Struct Int2
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Vim.Math3d
Assembly: Vim.Math3D.dll
[DataContract]
public readonly struct Int2 : IEquatable<Int2>, IComparable<Int2>
Constructors
View SourceInt2(Int32)
public Int2(int value)
Int2(Int32, Int32)
public Int2(int x, int y)
Int2((Int32 x, Int32 y))
public Int2((int x, int y) tuple)
Fields
View SourceMaxValue
public static Int2 MaxValue
MinValue
public static Int2 MinValue
NumComponents
public const int NumComponents = 2
One
public static Int2 One
UnitX
public static Int2 UnitX
UnitY
public static Int2 UnitY
X
[DataMember]
public readonly int X
Y
[DataMember]
public readonly int Y
Zero
public static Int2 Zero
Methods
View SourceAlmostZero(Single)
public readonly bool AlmostZero(float tolerance = 1E-07F)
AnyComponentNegative()
public readonly bool AnyComponentNegative()
CompareTo(Int2)
public readonly int CompareTo(Int2 x)
Create(Int32, Int32)
public static Int2 Create(int x, int y)
Create((Int32 x, Int32 y))
public static Int2 Create((int x, int y) tuple)
Deconstruct(out Int32, out Int32)
public readonly void Deconstruct(out int x, out int y)
Dot(Int2)
public readonly int Dot(Int2 value)
Dot(Int2, Int2)
public static int Dot(Int2 value1, Int2 value2)
Equals(Object)
public override readonly bool Equals(object obj)
Overrides
System.ValueType.Equals(System.Object)
View Source
Equals(Int2)
public readonly bool Equals(Int2 x)
GetComponent(Int32)
public readonly int GetComponent(int n)
GetHashCode()
public override readonly int GetHashCode()
Overrides
System.ValueType.GetHashCode()
View Source
IsInfinity()
public readonly bool IsInfinity()
IsNaN()
public readonly bool IsNaN()
Magnitude()
public readonly double Magnitude()
MagnitudeSquared()
public readonly double MagnitudeSquared()
MaxComponent()
public readonly int MaxComponent()
MinComponent()
public readonly int MinComponent()
ProductComponents()
public readonly int ProductComponents()
SetX(Int32)
public readonly Int2 SetX(int x)
SetY(Int32)
public readonly Int2 SetY(int x)
SumComponents()
public readonly int SumComponents()
SumSqrComponents()
public readonly int SumSqrComponents()
ToString()
public override readonly string ToString()
Overrides
System.ValueType.ToString()
Operators
View SourceAddition(Int32, Int2)
public static Int2 operator +(int value1, Int2 value2)
Addition(Int2, Int32)
public static Int2 operator +(Int2 value1, int value2)
Addition(Int2, Int2)
public static Int2 operator +(Int2 value1, Int2 value2)
Division(Int32, Int2)
public static Int2 operator /(int value1, Int2 value2)
Division(Int2, Int32)
public static Int2 operator /(Int2 value1, int value2)
Division(Int2, Int2)
public static Int2 operator /(Int2 value1, Int2 value2)
Equality(Int2, Int2)
public static bool operator ==(Int2 x0, Int2 x1)
GreaterThan(Int2, Int2)
public static bool operator>(Int2 x0, Int2 x1)
GreaterThanOrEqual(Int2, Int2)
public static bool operator >=(Int2 x0, Int2 x1)
Implicit((Int32 x, Int32 y) to Int2)
public static implicit operator Int2((int x, int y) tuple)
Implicit(Int2 to (Int32 x, Int32 y))
public static implicit operator (int x, int y)(Int2 self)
Inequality(Int2, Int2)
public static bool operator !=(Int2 x0, Int2 x1)
LessThan(Int2, Int2)
public static bool operator <(Int2 x0, Int2 x1)
LessThanOrEqual(Int2, Int2)
public static bool operator <=(Int2 x0, Int2 x1)
Multiply(Int32, Int2)
public static Int2 operator *(int value1, Int2 value2)
Multiply(Int2, Int32)
public static Int2 operator *(Int2 value1, int value2)
Multiply(Int2, Int2)
public static Int2 operator *(Int2 value1, Int2 value2)
Subtraction(Int32, Int2)
public static Int2 operator -(int value1, Int2 value2)
Subtraction(Int2, Int32)
public static Int2 operator -(Int2 value1, int value2)
Subtraction(Int2, Int2)
public static Int2 operator -(Int2 value1, Int2 value2)
UnaryNegation(Int2)
public static Int2 operator -(Int2 value)
Implements
System.IEquatable<T>
System.IComparable<T>