Click or drag to resize

Vector2 Methods

The Vector2 type exposes the following members.

Methods
  NameDescription
Public methodAdd
Add a vector to the vector.
Public methodAngle
Computes the angle between the two vectors.
Public methodClamp
Clamps the vector components between a minimum and a maximum values.
Public methodCrossProduct
Computes the cross product of the two vectors .
Public methodDivide(Single)
Divide the vector by a scalar.
Public methodDivide(Vector2)
Divide the vector by a vector.
Public methodDotProduct
Computes the dot product of the two vectors.
Public methodEqual
Tells if the two vector are equals.
Public methodEquals
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).)
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasAGreaterComponentThan
Determines whether the vector has a greater component than the specified vector.
Public methodHasASmallerComponentThan
Determines whether the vector has a smaller component than the specified vector.
Public methodMaximum
Gets the maximum vector values of the two vectors.
Public methodMinimum
Gets the minimum vector values of the two vectors.
Public methodMultiply(Single)
Multiply the vector by a scalar.
Public methodMultiply(Vector2)
Multiply the vector by a vector.
Public methodSubtract
Subtract a vector to the vector.
Public methodToString
Format the Vector2 to a String.
(Overrides ValueTypeToString.)
Top
See Also