| Vector2D Methods |
The Vector2D type exposes the following members.
| Name | Description | |
|---|---|---|
| Absolute |
Sets each vector component to its absolute value.
| |
| Absolute(Vector2D) |
Returns a vector with the absolute values of the elements of the given vector.
| |
| Add |
Adds two vectors.
| |
| AreNumericallyEqual(Vector2D, Vector2D) |
Determines whether two vectors are equal (regarding the tolerance
EpsilonD).
| |
| AreNumericallyEqual(Vector2D, Vector2D, Double) |
Determines whether two vectors are equal (regarding a specific tolerance).
| |
| Clamp(Double, Double) |
Clamps the vector components to the range [min, max].
| |
| Clamp(Vector2D, Double, Double) |
Returns a vector with the vector components clamped to the range [min, max].
| |
| ClampToZero |
Clamps near-zero vector components to zero.
| |
| ClampToZero(Double) |
Clamps near-zero vector components to zero.
| |
| ClampToZero(Vector2D) |
Returns a vector with near-zero vector components clamped to 0.
| |
| ClampToZero(Vector2D, Double) |
Returns a vector with near-zero vector components clamped to 0.
| |
| Divide(Vector2D, Vector2D) |
Divides the components of a vector by the components of another vector.
| |
| Divide(Vector2D, Double) |
Divides a vector by a scalar.
| |
| Dot |
Calculates the dot product of two vectors.
| |
| Equals(Object) |
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).) | |
| Equals(Vector2D) |
Indicates whether the current object is equal to another object of the same type.
| |
| FromXna | ||
| GetAngle |
Calculates the angle between two vectors.
| |
| GetHashCode |
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Max |
Returns a vector that contains the highest value from each matching pair of components.
| |
| Min |
Returns a vector that contains the lowest value from each matching pair of components.
| |
| Multiply(Double, Vector2D) |
Multiplies a vector by a scalar.
| |
| Multiply(Vector2D, Vector2D) |
Multiplies the components of two vectors by each other.
| |
| Negate |
Negates a vector.
| |
| Normalize |
Normalizes the vector.
| |
| Parse(String) |
Converts the string representation of a 2-dimensional vector to its Vector2D
equivalent.
| |
| Parse(String, IFormatProvider) |
Converts the string representation of a 2-dimensional vector in a specified culture-specific
format to its Vector2D equivalent.
| |
| ProjectTo(Vector2D) |
Sets this vector to its projection onto the axis given by the target vector.
| |
| ProjectTo(Vector2D, Vector2D) |
Projects a vector onto an axis given by the target vector.
| |
| Subtract |
Subtracts a vector from a vector.
| |
| ToArray |
Converts this vector to an array of 2 double values.
| |
| ToList |
Converts this vector to a list of 2 double values.
| |
| ToString |
Returns the string representation of this vector.
(Overrides ValueTypeToString.) | |
| ToString(IFormatProvider) |
Returns the string representation of this vector using the specified culture-specific format
information.
| |
| ToVector2F | ||
| ToVectorD | ||
| ToXna | ||
| TryNormalize |
Tries to normalize the vector.
|