DPB2Class · Game state and actions

CoordinateExtensions

Provides coordinate extensions data and the operations listed below. Related types link to the values this API consumes or returns.

Namespace: DreamPoeBot.Loki.Game

public static class CoordinateExtensions
Reference: DPB2 0.4.5.103Compare the DPB1 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Members and overloads

9 declared here

PositionScalar

FieldLink ↗
public const float CoordinateExtensions.PositionScalar = 0.092

Reads position scalar on CoordinateExtensions as float. The exact type and accessors are shown below.

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

MapToWorld

MethodLink ↗
public static Vector2 CoordinateExtensions.MapToWorld(Vector2 v)

Calls MapToWorld on CoordinateExtensions with v and returns Vector2. Open the return contract below before using the result.

Return type: Vector2
Explore Vector2 → members & methods

Provides vector2 data and the operations listed below. Related types link to the values this API consumes or returns.

Parameters

v

Specifies v.

Returns: The Vector2 result.

MapToWorld

MethodLink ↗
public static Vector2 CoordinateExtensions.MapToWorld(Vector2i v)

Calls MapToWorld on CoordinateExtensions with v and returns Vector2. Open the return contract below before using the result.

Return type: Vector2
Explore Vector2 → members & methods

Provides vector2 data and the operations listed below. Related types link to the values this API consumes or returns.

Parameters

v

Specifies v.

Returns: The Vector2 result.

MapToWorld3

MethodLink ↗
public static Vector3 CoordinateExtensions.MapToWorld3(Vector2 v, bool checkZ = true)

Calls MapToWorld3 on CoordinateExtensions with v, checkZ and returns Vector3. Open the return contract below before using the result.

Return type: Vector3
Explore Vector3 → members & methods

Provides vector3 data and the operations listed below. Related types link to the values this API consumes or returns.

Parameters

v

Specifies v.

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

Specifies check z. Optional; the default is shown in the signature.

Returns: The Vector3 result.

DPB2 0.4.5.91 rejects invalid terrain coordinates with ArgumentOutOfRangeException and unavailable or changed-area terrain with InvalidOperationException. For coordinate conversions this applies when checkZ is true. Abort the pending action on failure; do not catch and continue with a click or key press. Discard saved targets when changing areas and reacquire them before a later attempt.

MapToWorld3

MethodLink ↗
public static Vector3 CoordinateExtensions.MapToWorld3(Vector2i v, bool checkZ = true)

Calls MapToWorld3 on CoordinateExtensions with v, checkZ and returns Vector3. Open the return contract below before using the result.

Return type: Vector3
Explore Vector3 → members & methods

Provides vector3 data and the operations listed below. Related types link to the values this API consumes or returns.

Parameters

v

Specifies v.

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

Specifies check z. Optional; the default is shown in the signature.

Returns: The Vector3 result.

DPB2 0.4.5.91 rejects invalid terrain coordinates with ArgumentOutOfRangeException and unavailable or changed-area terrain with InvalidOperationException. For coordinate conversions this applies when checkZ is true. Abort the pending action on failure; do not catch and continue with a click or key press. Discard saved targets when changing areas and reacquire them before a later attempt.

World3ToMap

MethodLink ↗
public static Vector2i CoordinateExtensions.World3ToMap(Vector3 v)

Calls World3ToMap on CoordinateExtensions with v 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

v

Specifies v.

Returns: The Vector2i result.

World3ToWorld

MethodLink ↗
public static Vector2 CoordinateExtensions.World3ToWorld(Vector3 v)

Calls World3ToWorld on CoordinateExtensions with v and returns Vector2. Open the return contract below before using the result.

Return type: Vector2
Explore Vector2 → members & methods

Provides vector2 data and the operations listed below. Related types link to the values this API consumes or returns.

Parameters

v

Specifies v.

Returns: The Vector2 result.

WorldToMap

MethodLink ↗
public static Vector2i CoordinateExtensions.WorldToMap(Vector2 v)

Calls WorldToMap on CoordinateExtensions with v 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

v

Specifies v.

Returns: The Vector2i result.

WorldToWorld3

MethodLink ↗
public static Vector3 CoordinateExtensions.WorldToWorld3(Vector2 v, bool checkZ = true)

Calls WorldToWorld3 on CoordinateExtensions with v, checkZ and returns Vector3. Open the return contract below before using the result.

Return type: Vector3
Explore Vector3 → members & methods

Provides vector3 data and the operations listed below. Related types link to the values this API consumes or returns.

Parameters

v

Specifies v.

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

Specifies check z. Optional; the default is shown in the signature.

Returns: The Vector3 result.

DPB2 0.4.5.91 rejects invalid terrain coordinates with ArgumentOutOfRangeException and unavailable or changed-area terrain with InvalidOperationException. For coordinate conversions this applies when checkZ is true. Abort the pending action on failure; do not catch and continue with a click or key press. Discard saved targets when changing areas and reacquire them before a later attempt.

DPB2 0.4.5.103 · 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.