DPB1Struct · Utilities and settings

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 Vector2i
Reference: DPB1 0.3.29.56Compare the DPB2 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Members and overloads

53 declared here

X

FieldLink ↗
public int Vector2i.X

Reads or assigns x on Vector2i as int. The exact type and accessors are shown below.

Value type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Y

FieldLink ↗
public int Vector2i.Y

Reads or assigns y on Vector2i as int. The exact type and accessors are shown below.

Value type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Vector2i

MethodLink ↗
public Vector2i.Vector2i()

Creates a new Vector2i instance.

Vector2i

MethodLink ↗
public Vector2i.Vector2i(int x, int y)

Creates a new Vector2i instance using the supplied arguments.

Parameters

x
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies x.

y
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies y.

Distance

MethodLink ↗
public int Vector2i.Distance(Vector2i v)

Calls Distance on Vector2i with v and returns int. Open the return contract below before using the result.

Return type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

v

Specifies v.

Returns: The int result.

Distance

MethodLink ↗
public int Vector2i.Distance(ref Vector2i v)

Calls Distance on Vector2i with v and returns int. Open the return contract below before using the result.

Return type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

v

Supplies and may update v.

Returns: The int result.

Distance

MethodLink ↗
public static int Vector2i.Distance(ref Vector2i v1, ref Vector2i v2)

Calls Distance on Vector2i with v1, v2 and returns int. Open the return contract below before using the result.

Return type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

v1

Supplies and may update v1.

v2

Supplies and may update v2.

Returns: The int result.

DistanceF

MethodLink ↗
public float Vector2i.DistanceF(Vector2i v)

Calls DistanceF on Vector2i with v and returns float. Open the return contract below before using the result.

Return type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

v

Specifies v.

Returns: The float result.

DistanceF

MethodLink ↗
public static float Vector2i.DistanceF(ref Vector2i v1, ref Vector2i v2)

Calls DistanceF on Vector2i with v1, v2 and returns float. Open the return contract below before using the result.

Return type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

v1

Supplies and may update v1.

v2

Supplies and may update v2.

Returns: The float result.

DistanceSqr

MethodLink ↗
public int Vector2i.DistanceSqr(Vector2i v)

Calls DistanceSqr on Vector2i with v and returns int. Open the return contract below before using the result.

Return type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

v

Specifies v.

Returns: The int result.

DistanceSqr

MethodLink ↗
public int Vector2i.DistanceSqr(ref Vector2i v)

Calls DistanceSqr on Vector2i with v and returns int. Open the return contract below before using the result.

Return type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

v

Supplies and may update v.

Returns: The int result.

DistanceSqr

MethodLink ↗
public static int Vector2i.DistanceSqr(ref Vector2i v1, ref Vector2i v2)

Calls DistanceSqr on Vector2i with v1, v2 and returns int. Open the return contract below before using the result.

Return type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

v1

Supplies and may update v1.

v2

Supplies and may update v2.

Returns: The int result.

Divide

MethodLink ↗
public static void Vector2i.Divide(ref Vector2i v1, ref Vector2i v2, out Vector2i result)

Calls Divide on Vector2i with v1, v2, result. This overload has no return value.

Return type: voidNo return value.

Parameters

v1

Supplies and may update v1.

v2

Supplies and may update v2.

result

Receives result.

Divide

MethodLink ↗
public static void Vector2i.Divide(ref Vector2i v1, int divisor, out Vector2i result)

Calls Divide on Vector2i with v1, divisor, result. This overload has no return value.

Return type: voidNo return value.

Parameters

v1

Supplies and may update v1.

divisor
Parameter type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies divisor.

result

Receives result.

Dot

MethodLink ↗
public static int Vector2i.Dot(Vector2i v1, Vector2i v2)

Calls Dot on Vector2i with v1, v2 and returns int. Open the return contract below before using the result.

Return type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

v1

Specifies v1.

v2

Specifies v2.

Returns: The int result.

Equals

MethodLink ↗
public bool Vector2i.Equals(Vector2i other)

Checks whether this value equals the supplied value.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

other

Specifies other.

Returns: A Boolean result. The member description explains the condition being checked.

Equals

MethodLink ↗
public bool Vector2i.Equals(ref Vector2i other)

Checks whether this value equals the supplied value.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

other

Supplies and may update other.

Returns: A Boolean result. The member description explains the condition being checked.

Equals

MethodLink ↗
public static bool Vector2i.Equals(ref Vector2i v1, ref Vector2i v2)

Checks whether this value equals the supplied value.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

v1

Supplies and may update v1.

v2

Supplies and may update v2.

Returns: A Boolean result. The member description explains the condition being checked.

Equals

MethodLink ↗
public override bool Vector2i.Equals(object obj)

Checks whether this value equals the supplied value.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

obj
Parameter type: objectNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies obj.

Returns: A Boolean result. The member description explains the condition being checked.

GetDirection

MethodLink ↗
public static void Vector2i.GetDirection(ref Vector2i from, ref Vector2i to, out Vector2i dir)

Calls GetDirection on Vector2i with from, to, dir. This overload has no return value.

Return type: voidNo return value.

Parameters

from

Supplies and may update from.

to

Supplies and may update to.

dir

Receives dir.

GetHashCode

MethodLink ↗
public override int Vector2i.GetHashCode()

Returns a hash code for comparing or indexing this value.

Return type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Returns: The int result.

GetPointAtDistanceAfterEnd

MethodLink ↗
public Vector2i Vector2i.GetPointAtDistanceAfterEnd(Vector2i end, float distance)

Calls GetPointAtDistanceAfterEnd on Vector2i with end, distance and returns Vector2i. Open the return contract below before using the result.

Return type: Vector2i
Explore Vector2i → members & methods

A two-dimensional integer position. Used by grid-position and pathfinding APIs; screen-position APIs may expect a different coordinate type.

Parameters

end

Specifies end.

distance
Parameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies distance.

Returns: The Vector2i result.

GetPointAtDistanceAfterThis

MethodLink ↗
public Vector2i Vector2i.GetPointAtDistanceAfterThis(Vector2i end, float distance)

Calls GetPointAtDistanceAfterThis on Vector2i with end, distance and returns Vector2i. Open the return contract below before using the result.

Return type: Vector2i
Explore Vector2i → members & methods

A two-dimensional integer position. Used by grid-position and pathfinding APIs; screen-position APIs may expect a different coordinate type.

Parameters

end

Specifies end.

distance
Parameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies distance.

Returns: The Vector2i result.

GetPointAtDistanceBeforeEnd

MethodLink ↗
public Vector2i Vector2i.GetPointAtDistanceBeforeEnd(Vector2i end, float distance)

Calls GetPointAtDistanceBeforeEnd on Vector2i with end, distance and returns Vector2i. Open the return contract below before using the result.

Return type: Vector2i
Explore Vector2i → members & methods

A two-dimensional integer position. Used by grid-position and pathfinding APIs; screen-position APIs may expect a different coordinate type.

Parameters

end

Specifies end.

distance
Parameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies distance.

Returns: The Vector2i result.

GetPointAtDistanceBeforeThis

MethodLink ↗
public Vector2i Vector2i.GetPointAtDistanceBeforeThis(Vector2i end, float distance)

Calls GetPointAtDistanceBeforeThis on Vector2i with end, distance and returns Vector2i. Open the return contract below before using the result.

Return type: Vector2i
Explore Vector2i → members & methods

A two-dimensional integer position. Used by grid-position and pathfinding APIs; screen-position APIs may expect a different coordinate type.

Parameters

end

Specifies end.

distance
Parameter type: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies distance.

Returns: The Vector2i result.

Length

MethodLink ↗
public int Vector2i.Length()

Calls Length on Vector2i without arguments and returns int. Open the return contract below before using the result.

Return type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Returns: The int result.

LengthSqr

MethodLink ↗
public int Vector2i.LengthSqr()

Calls LengthSqr on Vector2i without arguments and returns int. Open the return contract below before using the result.

Return type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Returns: The int result.

Max

MethodLink ↗
public static Vector2i Vector2i.Max(Vector2i v1, Vector2i v2)

Calls Max on Vector2i with v1, v2 and returns Vector2i. Open the return contract below before using the result.

Return type: Vector2i
Explore Vector2i → members & methods

A two-dimensional integer position. Used by grid-position and pathfinding APIs; screen-position APIs may expect a different coordinate type.

Parameters

v1

Specifies v1.

v2

Specifies v2.

Returns: The Vector2i result.

Inherited members and contracts

0 public members from documented base types and interfaces. Links open the original declaration; overrides are shown only once. Search using the member field above.

DPB1 0.3.29.56 · Reference reviewed 2026-10-30. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.