Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

1c9dcd91 19ae eb8b 7a61 03e969a9895b

haplokuon edited this page May 6, 2023 · 1 revision

Vector2 Methods

netDxf 3.0.0 Library

Methods

Add Adds two vectors.
Angle(Vector2) Obtains the angle of a vector.
Angle(Vector2, Vector2) Obtains the angle of a line defined by two points.
AngleBetween Obtains the angle between two vectors.
AreParallel(Vector2, Vector2) Checks if two vectors are parallel.
AreParallel(Vector2, Vector2, Double) Checks if two vectors are parallel.
ArePerpendicular(Vector2, Vector2) Checks if two vectors are perpendicular.
ArePerpendicular(Vector2, Vector2, Double) Checks if two vectors are perpendicular.
CrossProduct Obtains the cross product of two vectors.
Distance Obtains the distance between two points.
Divide(Vector2, Vector2) Divides two vectors component by component.
Divide(Vector2, Double) Divides a vector with an scalar.
DotProduct Obtains the dot product of two vectors.
Equals(Object) Indicates whether this instance and a specified object are equal.
(Overrides ValueType.Equals(Object))
Equals(Vector2) Check if the components of two vectors are approximate equals.
Equals(Vector2, Vector2) Check if the components of two vectors are approximate equal.
Equals(Vector2, Double) Check if the components of two vectors are approximate equals.
Equals(Vector2, Vector2, Double) Check if the components of two vectors are approximate equal.
GetHashCode Returns the hash code for this instance.
(Overrides ValueType.GetHashCode())
GetType Gets the Type of the current instance.
(Inherited from Object)
IsNaN Returns a value indicating if any component of the specified vector evaluates to a value that is not a number NaN.
IsZero Returns a value indicating if all components of the specified vector evaluates to zero.
MidPoint Obtains the midpoint.
Modulus Obtains the modulus of the vector.
Multiply(Double, Vector2) Multiplies a scalar with a vector.
Multiply(Vector2, Vector2) Multiplies two vectors component by component.
Multiply(Vector2, Double) Multiplies a vector with an scalar.
Negate Negates a vector.
Normalize() Normalizes the vector.
Normalize(Vector2) Normalizes the vector.
Perpendicular Obtains the counter clockwise perpendicular vector.
Polar Obtains the polar point of another point.
Rotate Rotates a vector.
Round Rounds the components of a vector.
SquareDistance Obtains the square distance between two points.
Subtract Subtracts two vectors.
ToArray Returns an array that represents the vector.
ToString() Obtains a string that represents the vector.
(Overrides ValueType.ToString())
ToString(IFormatProvider) Obtains a string that represents the vector.

See Also

Reference

Vector2 Structure
netDxf Namespace

Clone this wiki locally