Click or drag to resize
Vector2I Methods

The Vector2I type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAbs
Returns a vector whose components represent the absolute values of the components of the specified vector.
Public methodAdd
Adds the passed values to the x and y value.
Public methodStatic memberArea
Returns a positive number if c is to the left of the line going from a to b.
Public methodStatic memberCalculateAngle
Calculates the angle between two vectors on a plane.
Public methodCalculateDotProduct
Calculates the dot product of this and the passed vector. See http://en.wikipedia.org/wiki/Dot_product for more details.
Public methodStatic memberCollinear(Vector2I, Vector2I, Vector2I)
Determines if three vectors are collinear (ie. on a straight line).
Public methodStatic memberCollinear(Vector2I, Vector2I, Vector2I, Single)
Determines if three vectors are collinear (ie. on a straight line).
Public methodStatic memberCross
Calculates the cross product of the two passed vectors. See http://en.wikipedia.org/wiki/Cross_product for more details.
Public methodStatic memberDistance
Returns the distance between the two passed vectors.
Public methodStatic memberDot
Calculates the dot product of the two passed vectors. See http://en.wikipedia.org/wiki/Dot_product for more details.
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Object.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Vector2I)
Determines whether the specified Vector2I is equal to the current Vector2I.
Public methodGetDistance
Calculates the distance between this and the passed vector.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Overrides ValueTypeGetHashCode.)
Public methodGetPerpendicularVector
Returns a vector which is perpendicular to this vector.
Public methodGetSquareDistance
Calculates the square distance between this and the passed vector.
Public methodIsParallel
Checks if this vector is parallel or anti-parallel to the passed one.
Public methodStatic memberManhattanDistance
Sum of the absolute values of the differences of the components of both vectors.
Public methodStatic memberMax
Creates a new vector out of the two passed vectors and takes the maximum values from these for each component.
Public methodStatic memberMin
Creates a new vector out of the two passed vectors and takes the minimum values from these for each component.
Public methodToString
Returns a string that represents the current object.
(Overrides ValueTypeToString.)
Top
Extension Methods
  NameDescription
Public Extension MethodToVector2
Converts the specified framework vector to an Unity vector.
(Defined by MathConversionExtensions.)
Public Extension MethodToVector2F
Converts a integer vector to a float vector.
(Defined by VectorExtensions.)
Top
See Also