Vector2 Structure |
Namespace: DXFReaderNET
The Vector2 type exposes the following members.
| Name | Description | |
|---|---|---|
| Vector2(Double) |
Initializes a new instance of Vector3.
| |
| Vector2(Double) |
Initializes a new instance of Vector2.
| |
| Vector2(Double, Double) |
Initializes a new instance of Vector2.
|
| Name | Description | |
|---|---|---|
| Item |
Gets or sets a vector element defined by its index.
| |
| NaN |
Represents a vector with not a number components.
| |
| UnitX |
Unit X vector.
| |
| UnitY |
Unit Y vector.
| |
| X |
Gets or sets the X component.
| |
| Y |
Gets or sets the Y component.
| |
| Zero |
Zero vector.
|
| Name | Description | |
|---|---|---|
| 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 |
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 ValueTypeEquals(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 ValueTypeGetHashCode.) | |
| IsNaN |
Returns a value indicating if any component of the specified vector evaluates to a value that is not a number NaN.
| |
| MidPoint |
Obtains the midpoint.
| |
| Modulus |
Obtains the modulus of the vector.
| |
| Multiply(Double, Vector2) |
Multiplies an scalar with a vector.
| |
| 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.
| |
| PointDistance |
Obtains the relative distance of a point from a segment defined by points u and v.
| |
| Polar |
Obtains the polar point of another point.
| |
| Rotate |
Rotates the 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.
| |
| ToFormattedUnit |
Obtains a string that represents the vector formatted according to linear units format.
| |
| ToPointF |
Obtains the PointF conversion of Vector2.
| |
| ToString |
Obtains a string that represents the vector.
(Overrides ValueTypeToString.) | |
| ToString(IFormatProvider) |
Obtains a string that represents the vector.
| |
| ToVector3 |
Return the 3d vector setting Z coord value to zero.
|
| Name | Description | |
|---|---|---|
| Addition(Vector2, Vector2) |
Adds two vectors.
| |
| Addition(Vector2, Double) |
Adds a scalar to a vector.
| |
| Division |
Divides a vector with an scalar.
| |
| Equality |
Check if the components of two vectors are equal.
| |
| Inequality |
Check if the components of two vectors are different.
| |
| Multiply(Double, Vector2) |
Multiplies an scalar with a vector.
| |
| Multiply(Vector2, Double) |
Multiplies a vector with an scalar.
| |
| Subtraction(Vector2, Vector2) |
Subtracts two vectors.
| |
| Subtraction(Vector2, Double) |
Subtracts a scalar from a vector.
| |
| UnaryNegation |
Negates a vector.
|