Vector2 Methods |
The Vector2 type exposes the following members.
Name | Description | |
---|---|---|
Add |
Add a vector to the vector.
| |
Angle |
Computes the angle between the two vectors.
| |
Clamp |
Clamps the vector components between a minimum and a maximum values.
| |
CrossProduct |
Computes the cross product of the two vectors .
| |
Divide(Single) |
Divide the vector by a scalar.
| |
Divide(Vector2) |
Divide the vector by a vector.
| |
DotProduct |
Computes the dot product of the two vectors.
| |
Equal |
Tells if the two vector are equals.
| |
Equals |
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).) | |
GetHashCode |
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
HasAGreaterComponentThan |
Determines whether the vector has a greater component than the specified vector.
| |
HasASmallerComponentThan |
Determines whether the vector has a smaller component than the specified vector.
| |
Maximum |
Gets the maximum vector values of the two vectors.
| |
Minimum |
Gets the minimum vector values of the two vectors.
| |
Multiply(Single) |
Multiply the vector by a scalar.
| |
Multiply(Vector2) |
Multiply the vector by a vector.
| |
Subtract |
Subtract a vector to the vector.
| |
ToString |
Format the Vector2 to a String.
(Overrides ValueTypeToString.) |