| Vector2F Methods |
The Vector2F 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(Vector2F, Vector2F, Vector2F) |
Determines if three vectors are collinear (ie. on a straight line).
| |
| Collinear(Vector2F, Vector2F, Vector2F, 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(Vector2F) | ||
| GetDistance |
Calculates the distance between this and the passed vector.
| |
| GetHashCode |
Serves as a hash function for a particular type.
(Overrides ValueTypeGetHashCode.) | |
| GetNormalized |
Returns the normalized vector.
| |
| GetPerpendicularVector |
Returns a vector which is perpendicular to this vector.
| |
| GetReflected |
Creates a new vector which is reflected by the specified 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.
| |
| Limit |
Creates a new vector which is limited to the specified length.
If the vector is longer it is truncated, otherwise it stays the same.
| |
| 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.
| |
| Normalize |
Normalizes this vector.
| |
| Rotate |
Rotates the vector counter-clockwise.
| |
| Slerp |
Spherically interpolates between the two passed vectors.
| |
| ToString |
Returns a string that represents the current object.
(Overrides ValueTypeToString.) | |
| Truncate |
Changes the magnitude of this vector to the passed value.
|
| Name | Description | |
|---|---|---|
| ToVector2 |
Converts the specified framework vector to an Unity vector.
(Defined by MathConversionExtensions.) | |
| ToVector3 |
Converts the specified framework vector to an Unity vector.
(Defined by MathConversionExtensions.) | |
| ToVector3F |
Returns the 3D representation of this 2D vector and z coordinate.
(Defined by VectorExtensions.) | |
| ToVector3XY |
Converts the specified framework vector to an Unity vector.
(Defined by MathConversionExtensions.) | |
| ToVector3XZ |
Converts the specified framework vector to an Unity vector.
(Defined by MathConversionExtensions.) |