public float Vector2.X
Reads or assigns x on Vector2 as float. The exact type and accessors are shown below.
floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Provides vector2 data and the operations listed below. Related types link to the values this API consumes or returns.
Namespace: DreamPoeBot.Common
public struct Vector2public float Vector2.X
Reads or assigns x on Vector2 as float. The exact type and accessors are shown below.
floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.public float Vector2.Y
Reads or assigns y on Vector2 as float. The exact type and accessors are shown below.
floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.public Vector2.Vector2()
Creates a new Vector2 instance.
public Vector2.Vector2(float x, float y)
Creates a new Vector2 instance using the supplied arguments.
xfloatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Specifies x.
yfloatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Specifies y.
public static void Vector2.Add(ref Vector2 v1, ref Vector2 v2, out Vector2 result)
Calls Add on Vector2 with v1, v2, result. This overload has no return value.
voidNo return value.v1Vector2Supplies and may update v1.
v2Vector2Supplies and may update v2.
resultVector2Receives result.
public float Vector2.Distance(Vector2 v)
Calls Distance on Vector2 with v and returns float. Open the return contract below before using the result.
floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.vVector2Specifies v.
Returns: The float result.
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.
floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.vVector2Supplies and may update v.
Returns: The float result.
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.
floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.v1Vector2Supplies and may update v1.
v2Vector2Supplies and may update v2.
Returns: The float result.
public float Vector2.DistanceSqr(Vector2 v)
Calls DistanceSqr on Vector2 with v and returns float. Open the return contract below before using the result.
floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.vVector2Specifies v.
Returns: The float result.
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.
floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.vVector2Supplies and may update v.
Returns: The float result.
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.
floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.v1Vector2Supplies and may update v1.
v2Vector2Supplies and may update v2.
Returns: The float result.
public static void Vector2.Divide(ref Vector2 v1, ref Vector2 v2, out Vector2 result)
Calls Divide on Vector2 with v1, v2, result. This overload has no return value.
voidNo return value.v1Vector2Supplies and may update v1.
v2Vector2Supplies and may update v2.
resultVector2Receives result.
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.
voidNo return value.v1Vector2Supplies and may update v1.
divisorfloatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Specifies divisor.
resultVector2Receives result.
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.
floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.v1Vector2Specifies v1.
v2Vector2Specifies v2.
Returns: The float result.
public bool Vector2.Equals(Vector2 other)
Checks whether this value equals the supplied value.
boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.otherVector2Specifies other.
Returns: A Boolean result. The member description explains the condition being checked.
public bool Vector2.Equals(ref Vector2 other)
Checks whether this value equals the supplied value.
boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.otherVector2Supplies and may update other.
Returns: A Boolean result. The member description explains the condition being checked.
public static bool Vector2.Equals(ref Vector2 v1, ref Vector2 v2)
Checks whether this value equals the supplied value.
boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.v1Vector2Supplies and may update v1.
v2Vector2Supplies and may update v2.
Returns: A Boolean result. The member description explains the condition being checked.
public override bool Vector2.Equals(object obj)
Checks whether this value equals the supplied value.
boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.objobjectNo 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.
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.
voidNo return value.fromVector2Supplies and may update from.
toVector2Supplies and may update to.
dirVector2Receives dir.
public override int Vector2.GetHashCode()
Returns a hash code for comparing or indexing this value.
intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Returns: The int result.
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.
Vector2Provides vector2 data and the operations listed below. Related types link to the values this API consumes or returns.
endVector2Specifies end.
distancefloatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Specifies distance.
Returns: The Vector2 result.
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.
Vector2Provides vector2 data and the operations listed below. Related types link to the values this API consumes or returns.
endVector2Specifies end.
distancefloatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Specifies distance.
Returns: The Vector2 result.
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.
Vector2Provides vector2 data and the operations listed below. Related types link to the values this API consumes or returns.
endVector2Specifies end.
distancefloatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Specifies distance.
Returns: The Vector2 result.
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.
Vector2Provides vector2 data and the operations listed below. Related types link to the values this API consumes or returns.
endVector2Specifies end.
distancefloatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Specifies distance.
Returns: The Vector2 result.
public float Vector2.Length()
Calls Length on Vector2 without arguments and returns float. Open the return contract below before using the result.
floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Returns: The float result.
public float Vector2.LengthSqr()
Calls LengthSqr on Vector2 without arguments and returns float. Open the return contract below before using the result.
floatNo current DPB page is linked for this built-in, external, generic or compatibility-only type.Returns: The float result.
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.
Vector2Provides vector2 data and the operations listed below. Related types link to the values this API consumes or returns.
v1Vector2Specifies v1.
v2Vector2Specifies v2.
Returns: The Vector2 result.
public static void Vector2.Max(ref Vector2 v1, ref Vector2 v2, out Vector2 result)
Calls Max on Vector2 with v1, v2, result. This overload has no return value.
voidNo return value.v1Vector2Supplies and may update v1.
v2Vector2Supplies and may update v2.
resultVector2Receives result.
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.
Vector2Provides vector2 data and the operations listed below. Related types link to the values this API consumes or returns.
v1Vector2Specifies v1.
v2Vector2Specifies v2.
Returns: The Vector2 result.
public static void Vector2.Min(ref Vector2 v1, ref Vector2 v2, out Vector2 result)
Calls Min on Vector2 with v1, v2, result. This overload has no return value.
voidNo return value.v1Vector2Supplies and may update v1.
v2Vector2Supplies and may update v2.
resultVector2Receives result.
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.
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.