public int Vector2i.X
Gets or sets x for Vector2i.
A two-dimensional integer position. Used by grid-position and pathfinding APIs; screen-position APIs may expect a different coordinate type.
Namespace: DreamPoeBot.Common
public struct Vector2iView DPB1 version →Members declared by a base type are documented on that type. Follow these links to include them in your lookup.
public int Vector2i.X
Gets or sets x for Vector2i.
public int Vector2i.Y
Gets or sets y for Vector2i.
public Vector2i.Vector2i()
Creates a new Vector2i instance.
public Vector2i.Vector2i(Vector2i vector)
Creates a new Vector2i instance using the supplied arguments.
vectorVector2ipublic Vector2i.Vector2i(int x, int y)
Creates a new Vector2i instance using the supplied arguments.
xintyintpublic static void Vector2i.Add(ref Vector2i v1, ref Vector2i v2, out Vector2i result)
Executes the add operation with the supplied arguments.
v1Vector2iv2Vector2iresultVector2ipublic int Vector2i.Distance(Vector2i v)
Executes the distance operation with the supplied arguments.
vVector2iReturns: The int result.
public int Vector2i.Distance(ref Vector2i v)
Executes the distance operation with the supplied arguments.
vVector2iReturns: The int result.
public static int Vector2i.Distance(ref Vector2i v1, ref Vector2i v2)
Executes the distance operation with the supplied arguments.
v1Vector2iv2Vector2iReturns: The int result.
public float Vector2i.DistanceF(Vector2i v)
Executes the distance f operation with the supplied arguments.
vVector2iReturns: The float result.
public static float Vector2i.DistanceF(ref Vector2i v1, ref Vector2i v2)
Executes the distance f operation with the supplied arguments.
v1Vector2iv2Vector2iReturns: The float result.
public int Vector2i.DistanceSqr(Vector2i v)
Executes the distance sqr operation with the supplied arguments.
vVector2iReturns: The int result.
public int Vector2i.DistanceSqr(ref Vector2i v)
Executes the distance sqr operation with the supplied arguments.
vVector2iReturns: The int result.
public static int Vector2i.DistanceSqr(ref Vector2i v1, ref Vector2i v2)
Executes the distance sqr operation with the supplied arguments.
v1Vector2iv2Vector2iReturns: The int result.
public static void Vector2i.Divide(ref Vector2i v1, ref Vector2i v2, out Vector2i result)
Executes the divide operation with the supplied arguments.
v1Vector2iv2Vector2iresultVector2ipublic static void Vector2i.Divide(ref Vector2i v1, int divisor, out Vector2i result)
Executes the divide operation with the supplied arguments.
v1Vector2idivisorintresultVector2ipublic static int Vector2i.Dot(Vector2i v1, Vector2i v2)
Executes the dot operation with the supplied arguments.
v1Vector2iv2Vector2iReturns: The int result.
public bool Vector2i.Equals(Vector2i other)
Checks whether this value equals the supplied value.
otherVector2iReturns: A Boolean result. The member description explains the condition being checked.
public bool Vector2i.Equals(ref Vector2i other)
Checks whether this value equals the supplied value.
otherVector2iReturns: A Boolean result. The member description explains the condition being checked.
public static bool Vector2i.Equals(ref Vector2i v1, ref Vector2i v2)
Checks whether this value equals the supplied value.
v1Vector2iv2Vector2iReturns: A Boolean result. The member description explains the condition being checked.
public override bool Vector2i.Equals(object obj)
Checks whether this value equals the supplied value.
objobjectReturns: A Boolean result. The member description explains the condition being checked.
public static void Vector2i.GetDirection(ref Vector2i from, ref Vector2i to, out Vector2i dir)
Returns direction using the supplied arguments.
fromVector2itoVector2idirVector2ipublic override int Vector2i.GetHashCode()
Returns a hash code for comparing or indexing this value.
Returns: The int result.
public Vector2i Vector2i.GetPointAtDistanceAfterEnd(Vector2i end, float distance)
Returns point at distance after end using the supplied arguments.
endVector2idistancefloatReturns: The Vector2i result.
public Vector2i Vector2i.GetPointAtDistanceAfterThis(Vector2i end, float distance)
Returns point at distance after this using the supplied arguments.
endVector2idistancefloatReturns: The Vector2i result.
public Vector2i Vector2i.GetPointAtDistanceBeforeEnd(Vector2i end, float distance)
Returns point at distance before end using the supplied arguments.
endVector2idistancefloatReturns: The Vector2i result.
public Vector2i Vector2i.GetPointAtDistanceBeforeThis(Vector2i end, float distance)
Returns point at distance before this using the supplied arguments.
endVector2idistancefloatReturns: The Vector2i result.
public int Vector2i.Length()
Executes the length operation.
Returns: The int result.
public int Vector2i.LengthSqr()
Executes the length sqr operation.
Returns: The int result.
public static Vector2i Vector2i.Max(Vector2i v1, Vector2i v2)
Executes the max operation with the supplied arguments.
v1Vector2iv2Vector2iReturns: The Vector2i result.
DPB2 0.4.5.88 · Reference reviewed 2026-10-02. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.