![]() | Vector2I Methods |
The Vector2I type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | Abs |
Returns a vector whose components represent the absolute values of
the components of the specified vector.
|
![]() | Add |
Adds the passed values to the x and y value.
|
![]() ![]() | Area |
Returns a positive number if c is to the left of the line going from a to b.
|
![]() ![]() | CalculateAngle |
Calculates the angle between two vectors on a plane.
|
![]() | CalculateDotProduct |
Calculates the dot product of this and the passed vector. See http://en.wikipedia.org/wiki/Dot_product for more
details.
|
![]() ![]() | Collinear(Vector2I, Vector2I, Vector2I) |
Determines if three vectors are collinear (ie. on a straight line).
|
![]() ![]() | Collinear(Vector2I, Vector2I, Vector2I, Single) |
Determines if three vectors are collinear (ie. on a straight line).
|
![]() ![]() | Cross |
Calculates the cross product of the two passed vectors. See http://en.wikipedia.org/wiki/Cross_product for more
details.
|
![]() ![]() | Distance |
Returns the distance between the two passed vectors.
|
![]() ![]() | Dot |
Calculates the dot product of the two passed vectors. See http://en.wikipedia.org/wiki/Dot_product for more details.
|
![]() | Equals(Object) | (Overrides ValueTypeEquals(Object).) |
![]() | Equals(Vector2I) | |
![]() | GetDistance |
Calculates the distance between this and the passed vector.
|
![]() | GetHashCode |
Serves as a hash function for a particular type.
(Overrides ValueTypeGetHashCode.) |
![]() | GetPerpendicularVector |
Returns a vector which is perpendicular to this vector.
|
![]() | GetSquareDistance |
Calculates the square distance between this and the passed vector.
|
![]() | IsParallel |
Checks if this vector is parallel or anti-parallel to the passed one.
|
![]() ![]() | ManhattanDistance |
Sum of the absolute values of the differences of the components of both vectors.
|
![]() ![]() | Max |
Creates a new vector out of the two passed vectors and takes the maximum values from these for each component.
|
![]() ![]() | Min |
Creates a new vector out of the two passed vectors and takes the minimum values from these for each component.
|
![]() | ToString |
Returns a string that represents the current object.
(Overrides ValueTypeToString.) |
Name | Description | |
---|---|---|
![]() | ToVector2 |
Converts the specified framework vector to an Unity vector.
(Defined by MathConversionExtensions.) |
![]() | ToVector2F |
Converts a integer vector to a float vector.
(Defined by VectorExtensions.) |