| Vector2I Structure |
Namespace: Slash.Math.Algebra.Vectors
The Vector2I type exposes the following members.
| Name | Description | |
|---|---|---|
| Vector2I(Int32) |
Constructor.
| |
| Vector2I(Vector2I) |
Constructor.
| |
| Vector2I(Int32, Int32) |
Constructor.
|
| Name | Description | |
|---|---|---|
| IsNonZero |
Indicates if at least one vector component is not zero.
| |
| IsZero |
Indicates if all vector components are zero.
| |
| Magnitude |
Magnitude of the vector.
| |
| SquareMagnitude |
Square magnitude of the vector.
|
| 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) |
Determines whether the specified Vector2I is equal to the current 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 | |
|---|---|---|
| Addition(Vector2I, Vector2I) |
Sums the components of the passed vectors and returns the resulting vector.
| |
| Addition(Vector2I, Int32) |
Adds the passed value to each component of the passed vector.
| |
| Division |
Divides each component of the passed vector by the passed value.
| |
| Equality |
Indicates if the two passed vectors are equal.
| |
| Inequality |
Indicates if the two passed vectors are not equal.
| |
| Multiply(Int32, Vector2I) |
Multiplies each vector component with the specified value.
| |
| Multiply(Single, Vector2I) |
Multiplies each vector component with the specified value.
| |
| Multiply(Vector2I, Vector2I) |
Multiplies each vector component of the two passed vectors.
| |
| Multiply(Vector2I, Int32) |
Multiplies each vector component with the specified value.
| |
| Multiply(Vector2I, Single) |
Multiplies each vector component with the specified value.
| |
| Subtraction(Vector2I, Vector2I) |
Subtracts the components of the second passed vector from the first passed.
| |
| Subtraction(Vector2I, Int32) |
Subtracts the passed value from each component of the passed vector.
| |
| UnaryNegation |
Negates each component of the passed vector.
|
| Name | Description | |
|---|---|---|
| Forward |
Unrotated forward vector.
| |
| One |
Both vector components are 1.
| |
| Side |
Unrotated side vector.
| |
| UnitX |
X component is 1, Y component is 0.
| |
| UnitY |
X component is 0, Y component is 1.
| |
| X |
X component.
| |
| Y |
Y component.
| |
| Zero |
Both vector components are 0.
|
| 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.) |