DPB1Struct · Utilities and settings

Vector2

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

Namespace: DreamPoeBot.Common

public struct Vector2
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

50 declared here

X

FieldLink ↗
public float Vector2.X

Reads or assigns x on Vector2 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.

Y

FieldLink ↗
public float Vector2.Y

Reads or assigns y on Vector2 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.

Vector2

MethodLink ↗
public Vector2.Vector2()

Creates a new Vector2 instance.

Vector2

MethodLink ↗
public Vector2.Vector2(float x, float y)

Creates a new Vector2 instance using the supplied arguments.

Parameters

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

Specifies x.

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

Specifies y.

Distance

MethodLink ↗
public float Vector2.Distance(Vector2 v)

Calls Distance on Vector2 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.

Distance

MethodLink ↗
public float Vector2.Distance(ref Vector2 v)

Calls Distance on Vector2 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

Supplies and may update v.

Returns: The float result.

Distance

MethodLink ↗
public static float Vector2.Distance(ref Vector2 v1, ref Vector2 v2)

Calls Distance on Vector2 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 float Vector2.DistanceSqr(Vector2 v)

Calls DistanceSqr on Vector2 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.

DistanceSqr

MethodLink ↗
public float Vector2.DistanceSqr(ref Vector2 v)

Calls DistanceSqr on Vector2 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

Supplies and may update v.

Returns: The float result.

DistanceSqr

MethodLink ↗
public static float Vector2.DistanceSqr(ref Vector2 v1, ref Vector2 v2)

Calls DistanceSqr on Vector2 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.

Divide

MethodLink ↗
public static void Vector2.Divide(ref Vector2 v1, float divisor, out Vector2 result)

Calls Divide on Vector2 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: floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies divisor.

result

Receives result.

Dot

MethodLink ↗
public static float Vector2.Dot(Vector2 v1, Vector2 v2)

Calls Dot on Vector2 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

Specifies v1.

v2

Specifies v2.

Returns: The float result.

Equals

MethodLink ↗
public bool Vector2.Equals(Vector2 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 Vector2.Equals(ref Vector2 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 Vector2.Equals(ref Vector2 v1, ref Vector2 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 Vector2.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 Vector2.GetDirection(ref Vector2 from, ref Vector2 to, out Vector2 dir)

Calls GetDirection on Vector2 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 Vector2.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 Vector2 Vector2.GetPointAtDistanceAfterEnd(Vector2 end, float distance)

Calls GetPointAtDistanceAfterEnd on Vector2 with end, distance 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

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 Vector2 result.

GetPointAtDistanceAfterThis

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

Calls GetPointAtDistanceAfterThis on Vector2 with end, distance 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

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 Vector2 result.

GetPointAtDistanceBeforeEnd

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

Calls GetPointAtDistanceBeforeEnd on Vector2 with end, distance 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

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 Vector2 result.

GetPointAtDistanceBeforeThis

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

Calls GetPointAtDistanceBeforeThis on Vector2 with end, distance 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

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 Vector2 result.

Length

MethodLink ↗
public float Vector2.Length()

Calls Length on Vector2 without arguments 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.

Returns: The float result.

LengthSqr

MethodLink ↗
public float Vector2.LengthSqr()

Calls LengthSqr on Vector2 without arguments 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.

Returns: The float result.

Max

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

Calls Max on Vector2 with v1, v2 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

v1

Specifies v1.

v2

Specifies v2.

Returns: The Vector2 result.

Min

MethodLink ↗
public static Vector2 Vector2.Min(Vector2 v1, Vector2 v2)

Calls Min on Vector2 with v1, v2 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

v1

Specifies v1.

v2

Specifies v2.

Returns: The Vector2 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.