Struct Vector2i
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
public struct Vector2i : IComparable<Vector2i>, IEquatable<Vector2i>
Constructors
Vector2i(Int32)
Declaration
Parameters
Type |
Name |
Description |
Int32 |
f |
|
Vector2i(Int32, Int32)
Declaration
public Vector2i(int x, int y)
Parameters
Vector2i(Int32[])
Declaration
public Vector2i(int[] v2)
Parameters
Type |
Name |
Description |
Int32[] |
v2 |
|
Fields
AxisX
Declaration
public static readonly Vector2i AxisX
Field Value
AxisY
Declaration
public static readonly Vector2i AxisY
Field Value
One
Declaration
public static readonly Vector2i One
Field Value
x
Declaration
Field Value
y
Declaration
Field Value
Zero
Declaration
public static readonly Vector2i Zero
Field Value
Properties
array
Declaration
public int[] array { get; }
Property Value
Item[Int32]
Declaration
public int this[int key] { get; set; }
Parameters
Type |
Name |
Description |
Int32 |
key |
|
Property Value
LengthSquared
Declaration
public int LengthSquared { get; }
Property Value
Methods
Add(Int32)
Declaration
Parameters
Type |
Name |
Description |
Int32 |
s |
|
CompareTo(Vector2i)
Declaration
public int CompareTo(Vector2i other)
Parameters
Returns
Equals(Vector2i)
Declaration
public bool Equals(Vector2i other)
Parameters
Returns
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
Addition(Vector2i, Vector2i)
Declaration
public static Vector2i operator +(Vector2i v0, Vector2i v1)
Parameters
Returns
Addition(Vector2i, Int32)
Declaration
public static Vector2i operator +(Vector2i v0, int f)
Parameters
Returns
Division(Vector2i, Vector2i)
Declaration
public static Vector2i operator /(Vector2i a, Vector2i b)
Parameters
Returns
Division(Vector2i, Int32)
Declaration
public static Vector2i operator /(Vector2i v, int f)
Parameters
Returns
Division(Int32, Vector2i)
Declaration
public static Vector2i operator /(int f, Vector2i v)
Parameters
Returns
Equality(Vector2i, Vector2i)
Declaration
public static bool operator ==(Vector2i a, Vector2i b)
Parameters
Returns
Inequality(Vector2i, Vector2i)
Declaration
public static bool operator !=(Vector2i a, Vector2i b)
Parameters
Returns
Multiply(Vector2i, Vector2i)
Declaration
public static Vector2i operator *(Vector2i a, Vector2i b)
Parameters
Returns
Multiply(Vector2i, Int32)
Declaration
public static Vector2i operator *(Vector2i v, int f)
Parameters
Returns
Multiply(Int32, Vector2i)
Declaration
public static Vector2i operator *(int f, Vector2i v)
Parameters
Returns
Subtraction(Vector2i, Vector2i)
Declaration
public static Vector2i operator -(Vector2i v0, Vector2i v1)
Parameters
Returns
Subtraction(Vector2i, Int32)
Declaration
public static Vector2i operator -(Vector2i v0, int f)
Parameters
Returns
UnaryNegation(Vector2i)
Declaration
public static Vector2i operator -(Vector2i v)
Parameters
Returns
Implements