Click or drag to resize

Vector2 Methods

The Vector2 type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAdd
Adds two vectors.
Public methodStatic memberAngle(Vector2)
Obtains the angle of a vector.
Public methodStatic memberAngle(Vector2, Vector2)
Obtains the angle of a line defined by two points.
Public methodStatic memberAngleBetween
Obtains the angle between two vectors.
Public methodStatic memberAreParallel(Vector2, Vector2)
Checks if two vectors are parallel.
Public methodStatic memberAreParallel(Vector2, Vector2, Double)
Checks if two vectors are parallel.
Public methodStatic memberArePerpendicular(Vector2, Vector2)
Checks if two vectors are perpendicular.
Public methodStatic memberArePerpendicular(Vector2, Vector2, Double)
Checks if two vectors are perpendicular.
Public methodStatic memberCrossProduct
Obtains the cross product of two vectors.
Public methodStatic memberDistance
Obtains the distance between two points.
Public methodStatic memberDivide
Divides a vector with an scalar.
Public methodStatic memberDotProduct
Obtains the dot product of two vectors.
Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Vector2)
Check if the components of two vectors are approximate equals.
Public methodStatic memberEquals(Vector2, Vector2)
Check if the components of two vectors are approximate equal.
Public methodEquals(Vector2, Double)
Check if the components of two vectors are approximate equals.
Public methodStatic memberEquals(Vector2, Vector2, Double)
Check if the components of two vectors are approximate equal.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodStatic memberIsNaN
Returns a value indicating if any component of the specified vector evaluates to a value that is not a number NaN.
Public methodStatic memberMidPoint
Obtains the midpoint.
Public methodModulus
Obtains the modulus of the vector.
Public methodStatic memberMultiply(Double, Vector2)
Multiplies an scalar with a vector.
Public methodStatic memberMultiply(Vector2, Double)
Multiplies a vector with an scalar.
Public methodStatic memberNegate
Negates a vector.
Public methodNormalize
Normalizes the vector.
Public methodStatic memberNormalize(Vector2)
Normalizes the vector.
Public methodStatic memberPerpendicular
Obtains the counter clockwise perpendicular vector.
Public methodStatic memberPointDistance
Obtains the relative distance of a point from a segment defined by points u and v.
Public methodStatic memberPolar
Obtains the polar point of another point.
Public methodRotate
Rotates the vector.
Public methodStatic memberRound
Rounds the components of a vector.
Public methodStatic memberSquareDistance
Obtains the square distance between two points.
Public methodStatic memberSubtract
Subtracts two vectors.
Public methodToArray
Returns an array that represents the vector.
Public methodToFormattedUnit
Obtains a string that represents the vector formatted according to linear units format.
Public methodToPointF
Obtains the PointF conversion of Vector2.
Public methodToString
Obtains a string that represents the vector.
(Overrides ValueTypeToString.)
Public methodToString(IFormatProvider)
Obtains a string that represents the vector.
Public methodToVector3
Return the 3d vector setting Z coord value to zero.
Top
See Also