public float Vector2.X
Gets or sets x for 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 →Members declared by a base type are documented on that type. Follow these links to include them in your lookup.
public float Vector2.X
Gets or sets x for Vector2.
public float Vector2.Y
Gets or sets y for Vector2.
public Vector2.Vector2()
Creates a new Vector2 instance.
public Vector2.Vector2(float x, float y)
Creates a new Vector2 instance using the supplied arguments.
xfloatyfloatpublic static void Vector2.Add(ref Vector2 v1, ref Vector2 v2, out Vector2 result)
Executes the add operation with the supplied arguments.
v1Vector2v2Vector2resultVector2public float Vector2.Distance(Vector2 v)
Executes the distance operation with the supplied arguments.
vVector2Returns: The float result.
public float Vector2.Distance(ref Vector2 v)
Executes the distance operation with the supplied arguments.
vVector2Returns: The float result.
public static float Vector2.Distance(ref Vector2 v1, ref Vector2 v2)
Executes the distance operation with the supplied arguments.
v1Vector2v2Vector2Returns: The float result.
public float Vector2.DistanceSqr(Vector2 v)
Executes the distance sqr operation with the supplied arguments.
vVector2Returns: The float result.
public float Vector2.DistanceSqr(ref Vector2 v)
Executes the distance sqr operation with the supplied arguments.
vVector2Returns: The float result.
public static float Vector2.DistanceSqr(ref Vector2 v1, ref Vector2 v2)
Executes the distance sqr operation with the supplied arguments.
v1Vector2v2Vector2Returns: The float result.
public static void Vector2.Divide(ref Vector2 v1, ref Vector2 v2, out Vector2 result)
Executes the divide operation with the supplied arguments.
v1Vector2v2Vector2resultVector2public static void Vector2.Divide(ref Vector2 v1, float divisor, out Vector2 result)
Executes the divide operation with the supplied arguments.
v1Vector2divisorfloatresultVector2public static float Vector2.Dot(Vector2 v1, Vector2 v2)
Executes the dot operation with the supplied arguments.
v1Vector2v2Vector2Returns: The float result.
public bool Vector2.Equals(Vector2 other)
Checks whether this value equals the supplied value.
otherVector2Returns: 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.
otherVector2Returns: 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.
v1Vector2v2Vector2Returns: 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.
objobjectReturns: 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)
Returns direction using the supplied arguments.
fromVector2toVector2dirVector2public override int Vector2.GetHashCode()
Returns a hash code for comparing or indexing this value.
Returns: The int result.
public Vector2 Vector2.GetPointAtDistanceAfterEnd(Vector2 end, float distance)
Returns point at distance after end using the supplied arguments.
endVector2distancefloatReturns: The Vector2 result.
public Vector2 Vector2.GetPointAtDistanceAfterThis(Vector2 end, float distance)
Returns point at distance after this using the supplied arguments.
endVector2distancefloatReturns: The Vector2 result.
public Vector2 Vector2.GetPointAtDistanceBeforeEnd(Vector2 end, float distance)
Returns point at distance before end using the supplied arguments.
endVector2distancefloatReturns: The Vector2 result.
public Vector2 Vector2.GetPointAtDistanceBeforeThis(Vector2 end, float distance)
Returns point at distance before this using the supplied arguments.
endVector2distancefloatReturns: The Vector2 result.
public float Vector2.Length()
Executes the length operation.
Returns: The float result.
public float Vector2.LengthSqr()
Executes the length sqr operation.
Returns: The float result.
public static Vector2 Vector2.Max(Vector2 v1, Vector2 v2)
Executes the max operation with the supplied arguments.
v1Vector2v2Vector2Returns: The Vector2 result.
public static void Vector2.Max(ref Vector2 v1, ref Vector2 v2, out Vector2 result)
Executes the max operation with the supplied arguments.
v1Vector2v2Vector2resultVector2public static Vector2 Vector2.Min(Vector2 v1, Vector2 v2)
Executes the min operation with the supplied arguments.
v1Vector2v2Vector2Returns: The Vector2 result.
public static void Vector2.Min(ref Vector2 v1, ref Vector2 v2, out Vector2 result)
Executes the min operation with the supplied arguments.
v1Vector2v2Vector2resultVector2DPB2 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.