DPB2Struct · 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 Vector2View DPB1 version →

Inherited APIs and contracts

Members declared by a base type are documented on that type. Follow these links to include them in your lookup.

Members and overloads

49 results

X

FieldLink ↗
public float Vector2.X

Gets or sets x for Vector2.

Y

FieldLink ↗
public float Vector2.Y

Gets or sets y for Vector2.

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.

xfloat
Specifies x.
yfloat
Specifies y.

Add

MethodLink ↗
public static void Vector2.Add(ref Vector2 v1, ref Vector2 v2, out Vector2 result)

Executes the add operation with the supplied arguments.

v1Vector2
Supplies and may update v1.
v2Vector2
Supplies and may update v2.
resultVector2
Receives result.

Distance

MethodLink ↗
public float Vector2.Distance(Vector2 v)

Executes the distance operation with the supplied arguments.

vVector2
Specifies v.

Returns: The float result.

Distance

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

Executes the distance operation with the supplied arguments.

vVector2
Supplies and may update v.

Returns: The float result.

Distance

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

Executes the distance operation with the supplied arguments.

v1Vector2
Supplies and may update v1.
v2Vector2
Supplies and may update v2.

Returns: The float result.

DistanceSqr

MethodLink ↗
public float Vector2.DistanceSqr(Vector2 v)

Executes the distance sqr operation with the supplied arguments.

vVector2
Specifies v.

Returns: The float result.

DistanceSqr

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

Executes the distance sqr operation with the supplied arguments.

vVector2
Supplies and may update v.

Returns: The float result.

DistanceSqr

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

Executes the distance sqr operation with the supplied arguments.

v1Vector2
Supplies and may update v1.
v2Vector2
Supplies and may update v2.

Returns: The float result.

Divide

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

Executes the divide operation with the supplied arguments.

v1Vector2
Supplies and may update v1.
v2Vector2
Supplies and may update v2.
resultVector2
Receives result.

Divide

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

Executes the divide operation with the supplied arguments.

v1Vector2
Supplies and may update v1.
divisorfloat
Specifies divisor.
resultVector2
Receives result.

Dot

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

Executes the dot operation with the supplied arguments.

v1Vector2
Specifies v1.
v2Vector2
Specifies v2.

Returns: The float result.

Equals

MethodLink ↗
public bool Vector2.Equals(Vector2 other)

Checks whether this value equals the supplied value.

otherVector2
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.

otherVector2
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.

v1Vector2
Supplies and may update v1.
v2Vector2
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.

objobject
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)

Returns direction using the supplied arguments.

fromVector2
Supplies and may update from.
toVector2
Supplies and may update to.
dirVector2
Receives dir.

GetHashCode

MethodLink ↗
public override int Vector2.GetHashCode()

Returns a hash code for comparing or indexing this value.

Returns: The int result.

GetPointAtDistanceAfterEnd

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

Returns point at distance after end using the supplied arguments.

endVector2
Specifies end.
distancefloat
Specifies distance.

Returns: The Vector2 result.

GetPointAtDistanceAfterThis

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

Returns point at distance after this using the supplied arguments.

endVector2
Specifies end.
distancefloat
Specifies distance.

Returns: The Vector2 result.

GetPointAtDistanceBeforeEnd

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

Returns point at distance before end using the supplied arguments.

endVector2
Specifies end.
distancefloat
Specifies distance.

Returns: The Vector2 result.

GetPointAtDistanceBeforeThis

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

Returns point at distance before this using the supplied arguments.

endVector2
Specifies end.
distancefloat
Specifies distance.

Returns: The Vector2 result.

Length

MethodLink ↗
public float Vector2.Length()

Executes the length operation.

Returns: The float result.

LengthSqr

MethodLink ↗
public float Vector2.LengthSqr()

Executes the length sqr operation.

Returns: The float result.

Max

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

Executes the max operation with the supplied arguments.

v1Vector2
Specifies v1.
v2Vector2
Specifies v2.

Returns: The Vector2 result.

Max

MethodLink ↗
public static void Vector2.Max(ref Vector2 v1, ref Vector2 v2, out Vector2 result)

Executes the max operation with the supplied arguments.

v1Vector2
Supplies and may update v1.
v2Vector2
Supplies and may update v2.
resultVector2
Receives result.

Min

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

Executes the min operation with the supplied arguments.

v1Vector2
Specifies v1.
v2Vector2
Specifies v2.

Returns: The Vector2 result.

Min

MethodLink ↗
public static void Vector2.Min(ref Vector2 v1, ref Vector2 v2, out Vector2 result)

Executes the min operation with the supplied arguments.

v1Vector2
Supplies and may update v1.
v2Vector2
Supplies and may update v2.
resultVector2
Receives 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.