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.
Vector3Provides vector3 data and the operations listed below. Related types link to the values this API consumes or returns.
Parameters
v- Parameter type:
Vector2iSpecifies 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.