|
Nebula
|
Describes a 2D-vector.
Inherits IEquatable.
Public Member Functions | |
| Vector2 (float x, float y) | |
| Constructs a 2d vector with X and Y from two values. | |
| Vector2 (float value) | |
| Constructs a 2d vector with X and Y set to the same value. | |
| void | Ceiling () |
| Round the members of this Vector2 towards positive infinity. | |
| override bool | Equals (object obj) |
| Compares whether current instance is equal to specified Object. | |
| bool | Equals (Vector2 other) |
| Compares whether current instance is equal to specified Vector2. | |
| void | Floor () |
| Round the members of this Vector2 towards negative infinity. | |
| override int | GetHashCode () |
| Gets the hash code of this Vector2. | |
| float | Length () |
| Returns the length of this Vector2. | |
| float | LengthSquared () |
| Returns the squared length of this Vector2. | |
| void | Normalize () |
| Turns this Vector2 to a unit vector with the same direction. | |
| void | Round () |
| Round the members of this Vector2 to the nearest integer value. | |
| override string | ToString () |
| Returns a String representation of this Vector2 in the format: {X:[X] Y:[Y]}. | |
| Point | ToPoint () |
| Gets a Point representation for this object. | |
| void | Deconstruct (out float x, out float y) |
| Deconstruction method for Vector2. | |
Static Public Member Functions | |
| static Vector2 | operator- (Vector2 value) |
| Inverts values in the specified Vector2. | |
| static Vector2 | operator+ (Vector2 value1, Vector2 value2) |
| Adds two vectors. | |
| static Vector2 | operator- (Vector2 value1, Vector2 value2) |
| Subtracts a Vector2 from a Vector2. | |
| static Vector2 | operator* (Vector2 value1, Vector2 value2) |
| Multiplies the components of two vectors by each other. | |
| static Vector2 | operator* (Vector2 value, float scaleFactor) |
| Multiplies the components of vector by a scalar. | |
| static Vector2 | operator* (float scaleFactor, Vector2 value) |
| Multiplies the components of vector by a scalar. | |
| static Vector2 | operator/ (Vector2 value1, Vector2 value2) |
| Divides the components of a Vector2 by the components of another Vector2. | |
| static Vector2 | operator/ (Vector2 value1, float divider) |
| Divides the components of a Vector2 by a scalar. | |
| static bool | operator== (Vector2 value1, Vector2 value2) |
| Compares whether two Vector2 instances are equal. | |
| static bool | operator!= (Vector2 value1, Vector2 value2) |
| Compares whether two Vector2 instances are not equal. | |
| static Vector2 | Add (Vector2 value1, Vector2 value2) |
| Performs vector addition on value1 and value2 . | |
| static void | Add (ref Vector2 value1, ref Vector2 value2, out Vector2 result) |
| Performs vector addition on value1 and value2 , storing the result of the addition in result . | |
| static Vector2 | Barycentric (Vector2 value1, Vector2 value2, Vector2 value3, float amount1, float amount2) |
| Creates a new Vector2 that contains the cartesian coordinates of a vector specified in barycentric coordinates and relative to 2d-triangle. | |
| static void | Barycentric (ref Vector2 value1, ref Vector2 value2, ref Vector2 value3, float amount1, float amount2, out Vector2 result) |
| Creates a new Vector2 that contains the cartesian coordinates of a vector specified in barycentric coordinates and relative to 2d-triangle. | |
| static Vector2 | CatmullRom (Vector2 value1, Vector2 value2, Vector2 value3, Vector2 value4, float amount) |
| Creates a new Vector2 that contains CatmullRom interpolation of the specified vectors. | |
| static void | CatmullRom (ref Vector2 value1, ref Vector2 value2, ref Vector2 value3, ref Vector2 value4, float amount, out Vector2 result) |
| Creates a new Vector2 that contains CatmullRom interpolation of the specified vectors. | |
| static Vector2 | Ceiling (Vector2 value) |
| Creates a new Vector2 that contains members from another vector rounded towards positive infinity. | |
| static void | Ceiling (ref Vector2 value, out Vector2 result) |
| Creates a new Vector2 that contains members from another vector rounded towards positive infinity. | |
| static Vector2 | Clamp (Vector2 value1, Vector2 min, Vector2 max) |
| Clamps the specified value within a range. | |
| static void | Clamp (ref Vector2 value1, ref Vector2 min, ref Vector2 max, out Vector2 result) |
| Clamps the specified value within a range. | |
| static float | Distance (Vector2 value1, Vector2 value2) |
| Returns the distance between two vectors. | |
| static void | Distance (ref Vector2 value1, ref Vector2 value2, out float result) |
| Returns the distance between two vectors. | |
| static float | DistanceSquared (Vector2 value1, Vector2 value2) |
| Returns the squared distance between two vectors. | |
| static void | DistanceSquared (ref Vector2 value1, ref Vector2 value2, out float result) |
| Returns the squared distance between two vectors. | |
| static Vector2 | Divide (Vector2 value1, Vector2 value2) |
| Divides the components of a Vector2 by the components of another Vector2. | |
| static void | Divide (ref Vector2 value1, ref Vector2 value2, out Vector2 result) |
| Divides the components of a Vector2 by the components of another Vector2. | |
| static Vector2 | Divide (Vector2 value1, float divider) |
| Divides the components of a Vector2 by a scalar. | |
| static void | Divide (ref Vector2 value1, float divider, out Vector2 result) |
| Divides the components of a Vector2 by a scalar. | |
| static float | Dot (Vector2 value1, Vector2 value2) |
| Returns a dot product of two vectors. | |
| static void | Dot (ref Vector2 value1, ref Vector2 value2, out float result) |
| Returns a dot product of two vectors. | |
| static Vector2 | Floor (Vector2 value) |
| Creates a new Vector2 that contains members from another vector rounded towards negative infinity. | |
| static void | Floor (ref Vector2 value, out Vector2 result) |
| Creates a new Vector2 that contains members from another vector rounded towards negative infinity. | |
| static Vector2 | Hermite (Vector2 value1, Vector2 tangent1, Vector2 value2, Vector2 tangent2, float amount) |
| Creates a new Vector2 that contains hermite spline interpolation. | |
| static void | Hermite (ref Vector2 value1, ref Vector2 tangent1, ref Vector2 value2, ref Vector2 tangent2, float amount, out Vector2 result) |
| Creates a new Vector2 that contains hermite spline interpolation. | |
| static Vector2 | Lerp (Vector2 value1, Vector2 value2, float amount) |
| Creates a new Vector2 that contains linear interpolation of the specified vectors. | |
| static void | Lerp (ref Vector2 value1, ref Vector2 value2, float amount, out Vector2 result) |
| Creates a new Vector2 that contains linear interpolation of the specified vectors. | |
| static Vector2 | LerpPrecise (Vector2 value1, Vector2 value2, float amount) |
| Creates a new Vector2 that contains linear interpolation of the specified vectors. | |
| static void | LerpPrecise (ref Vector2 value1, ref Vector2 value2, float amount, out Vector2 result) |
| Creates a new Vector2 that contains linear interpolation of the specified vectors. | |
| static Vector2 | Max (Vector2 value1, Vector2 value2) |
| Creates a new Vector2 that contains a maximal values from the two vectors. | |
| static void | Max (ref Vector2 value1, ref Vector2 value2, out Vector2 result) |
| Creates a new Vector2 that contains a maximal values from the two vectors. | |
| static Vector2 | Min (Vector2 value1, Vector2 value2) |
| Creates a new Vector2 that contains a minimal values from the two vectors. | |
| static void | Min (ref Vector2 value1, ref Vector2 value2, out Vector2 result) |
| Creates a new Vector2 that contains a minimal values from the two vectors. | |
| static Vector2 | Multiply (Vector2 value1, Vector2 value2) |
| Creates a new Vector2 that contains a multiplication of two vectors. | |
| static void | Multiply (ref Vector2 value1, ref Vector2 value2, out Vector2 result) |
| Creates a new Vector2 that contains a multiplication of two vectors. | |
| static Vector2 | Multiply (Vector2 value1, float scaleFactor) |
| Creates a new Vector2 that contains a multiplication of Vector2 and a scalar. | |
| static void | Multiply (ref Vector2 value1, float scaleFactor, out Vector2 result) |
| Creates a new Vector2 that contains a multiplication of Vector2 and a scalar. | |
| static Vector2 | Negate (Vector2 value) |
| Creates a new Vector2 that contains the specified vector inversion. | |
| static void | Negate (ref Vector2 value, out Vector2 result) |
| Creates a new Vector2 that contains the specified vector inversion. | |
| static Vector2 | Normalize (Vector2 value) |
| Creates a new Vector2 that contains a normalized values from another vector. | |
| static void | Normalize (ref Vector2 value, out Vector2 result) |
| Creates a new Vector2 that contains a normalized values from another vector. | |
| static Vector2 | Reflect (Vector2 vector, Vector2 normal) |
| Creates a new Vector2 that contains reflect vector of the given vector and normal. | |
| static void | Reflect (ref Vector2 vector, ref Vector2 normal, out Vector2 result) |
| Creates a new Vector2 that contains reflect vector of the given vector and normal. | |
| static Vector2 | Round (Vector2 value) |
| Creates a new Vector2 that contains members from another vector rounded to the nearest integer value. | |
| static void | Round (ref Vector2 value, out Vector2 result) |
| Creates a new Vector2 that contains members from another vector rounded to the nearest integer value. | |
| static Vector2 | SmoothStep (Vector2 value1, Vector2 value2, float amount) |
| Creates a new Vector2 that contains cubic interpolation of the specified vectors. | |
| static void | SmoothStep (ref Vector2 value1, ref Vector2 value2, float amount, out Vector2 result) |
| Creates a new Vector2 that contains cubic interpolation of the specified vectors. | |
| static Vector2 | Subtract (Vector2 value1, Vector2 value2) |
| Creates a new Vector2 that contains subtraction of on Vector2 from a another. | |
| static void | Subtract (ref Vector2 value1, ref Vector2 value2, out Vector2 result) |
| Creates a new Vector2 that contains subtraction of on Vector2 from a another. | |
| static Vector2 | Transform (Vector2 position, Matrix matrix) |
| Creates a new Vector2 that contains a transformation of 2d-vector by the specified Matrix. | |
| static void | Transform (ref Vector2 position, ref Matrix matrix, out Vector2 result) |
| Creates a new Vector2 that contains a transformation of 2d-vector by the specified Matrix. | |
| static Vector2 | Transform (Vector2 value, Quaternion rotation) |
| Creates a new Vector2 that contains a transformation of 2d-vector by the specified Quaternion, representing the rotation. | |
| static void | Transform (ref Vector2 value, ref Quaternion rotation, out Vector2 result) |
| Creates a new Vector2 that contains a transformation of 2d-vector by the specified Quaternion, representing the rotation. | |
| static void | Transform (Vector2[] sourceArray, int sourceIndex, ref Matrix matrix, Vector2[] destinationArray, int destinationIndex, int length) |
| Apply transformation on vectors within array of Vector2 by the specified Matrix and places the results in an another array. | |
| static void | Transform (Vector2[] sourceArray, int sourceIndex, ref Quaternion rotation, Vector2[] destinationArray, int destinationIndex, int length) |
| Apply transformation on vectors within array of Vector2 by the specified Quaternion and places the results in an another array. | |
| static void | Transform (Vector2[] sourceArray, ref Matrix matrix, Vector2[] destinationArray) |
| Apply transformation on all vectors within array of Vector2 by the specified Matrix and places the results in an another array. | |
| static void | Transform (Vector2[] sourceArray, ref Quaternion rotation, Vector2[] destinationArray) |
| Apply transformation on all vectors within array of Vector2 by the specified Quaternion and places the results in an another array. | |
| static Vector2 | TransformNormal (Vector2 normal, Matrix matrix) |
| Creates a new Vector2 that contains a transformation of the specified normal by the specified Matrix. | |
| static void | TransformNormal (ref Vector2 normal, ref Matrix matrix, out Vector2 result) |
| Creates a new Vector2 that contains a transformation of the specified normal by the specified Matrix. | |
| static void | TransformNormal (Vector2[] sourceArray, int sourceIndex, ref Matrix matrix, Vector2[] destinationArray, int destinationIndex, int length) |
| Apply transformation on normals within array of Vector2 by the specified Matrix and places the results in an another array. | |
| static void | TransformNormal (Vector2[] sourceArray, ref Matrix matrix, Vector2[] destinationArray) |
| Apply transformation on all normals within array of Vector2 by the specified Matrix and places the results in an another array. | |
Public Attributes | |
| float | X |
| The x coordinate of this Vector2. | |
| float | Y |
| The y coordinate of this Vector2. | |
Properties | |
| static Vector2 | Zero [get] |
| Returns a Vector2 with components 0, 0. | |
| static Vector2 | One [get] |
| Returns a Vector2 with components 1, 1. | |
| static Vector2 | UnitX [get] |
| Returns a Vector2 with components 1, 0. | |
| static Vector2 | UnitY [get] |
| Returns a Vector2 with components 0, 1. | |
| string | DebugDisplayString [get] |
Static Private Attributes | |
| static readonly Vector2 | zeroVector = new Vector2(0f, 0f) |
| static readonly Vector2 | unitVector = new Vector2(1f, 1f) |
| static readonly Vector2 | unitXVector = new Vector2(1f, 0f) |
| static readonly Vector2 | unitYVector = new Vector2(0f, 1f) |
|
inline |
Constructs a 2d vector with X and Y from two values.
| x | The x coordinate in 2d-space. |
| y | The y coordinate in 2d-space. |
|
inline |
Constructs a 2d vector with X and Y set to the same value.
| value | The x and y coordinates in 2d-space. |
Performs vector addition on value1 and value2 , storing the result of the addition in result .
| value1 | The first vector to add. |
| value2 | The second vector to add. |
| result | The result of the vector addition. |
Performs vector addition on value1 and value2 .
| value1 | The first vector to add. |
| value2 | The second vector to add. |
|
inlinestatic |
Creates a new Vector2 that contains the cartesian coordinates of a vector specified in barycentric coordinates and relative to 2d-triangle.
| value1 | The first vector of 2d-triangle. |
| value2 | The second vector of 2d-triangle. |
| value3 | The third vector of 2d-triangle. |
| amount1 | Barycentric scalar b2 which represents a weighting factor towards second vector of 2d-triangle. |
| amount2 | Barycentric scalar b3 which represents a weighting factor towards third vector of 2d-triangle. |
| result | The cartesian translation of barycentric coordinates as an output parameter. |
|
inlinestatic |
Creates a new Vector2 that contains the cartesian coordinates of a vector specified in barycentric coordinates and relative to 2d-triangle.
| value1 | The first vector of 2d-triangle. |
| value2 | The second vector of 2d-triangle. |
| value3 | The third vector of 2d-triangle. |
| amount1 | Barycentric scalar b2 which represents a weighting factor towards second vector of 2d-triangle. |
| amount2 | Barycentric scalar b3 which represents a weighting factor towards third vector of 2d-triangle. |
|
inlinestatic |
Creates a new Vector2 that contains CatmullRom interpolation of the specified vectors.
| value1 | The first vector in interpolation. |
| value2 | The second vector in interpolation. |
| value3 | The third vector in interpolation. |
| value4 | The fourth vector in interpolation. |
| amount | Weighting factor. |
| result | The result of CatmullRom interpolation as an output parameter. |
|
inlinestatic |
Creates a new Vector2 that contains CatmullRom interpolation of the specified vectors.
| value1 | The first vector in interpolation. |
| value2 | The second vector in interpolation. |
| value3 | The third vector in interpolation. |
| value4 | The fourth vector in interpolation. |
| amount | Weighting factor. |
|
inline |
Round the members of this Vector2 towards positive infinity.
Creates a new Vector2 that contains members from another vector rounded towards positive infinity.
| value | Source Vector2. |
| result | The rounded Vector2. |
Creates a new Vector2 that contains members from another vector rounded towards positive infinity.
| value | Source Vector2. |
|
inlinestatic |
Clamps the specified value within a range.
| value1 | The value to clamp. |
| min | The min value. |
| max | The max value. |
| result | The clamped value as an output parameter. |
Clamps the specified value within a range.
| value1 | The value to clamp. |
| min | The min value. |
| max | The max value. |
|
inline |
Deconstruction method for Vector2.
| x | |
| y |
|
inlinestatic |
Returns the distance between two vectors.
| value1 | The first vector. |
| value2 | The second vector. |
| result | The distance between two vectors as an output parameter. |
Returns the distance between two vectors.
| value1 | The first vector. |
| value2 | The second vector. |
|
inlinestatic |
Returns the squared distance between two vectors.
| value1 | The first vector. |
| value2 | The second vector. |
| result | The squared distance between two vectors as an output parameter. |
Returns the squared distance between two vectors.
| value1 | The first vector. |
| value2 | The second vector. |
Divides the components of a Vector2 by a scalar.
| value1 | Source Vector2. |
| divider | Divisor scalar. |
| result | The result of dividing a vector by a scalar as an output parameter. |
|
inlinestatic |
Divides the components of a Vector2 by the components of another Vector2.
| value1 | Source Vector2. |
| value2 | Divisor Vector2. |
| result | The result of dividing the vectors as an output parameter. |
Divides the components of a Vector2 by a scalar.
| value1 | Source Vector2. |
| divider | Divisor scalar. |
Divides the components of a Vector2 by the components of another Vector2.
| value1 | Source Vector2. |
| value2 | Divisor Vector2. |
Returns a dot product of two vectors.
| value1 | The first vector. |
| value2 | The second vector. |
| result | The dot product of two vectors as an output parameter. |
Returns a dot product of two vectors.
| value1 | The first vector. |
| value2 | The second vector. |
|
inline |
Compares whether current instance is equal to specified Object.
| obj | The Object to compare. |
true if the instances are equal; false otherwise.
|
inline |
Compares whether current instance is equal to specified Vector2.
| other | The Vector2 to compare. |
true if the instances are equal; false otherwise.
|
inline |
Round the members of this Vector2 towards negative infinity.
Creates a new Vector2 that contains members from another vector rounded towards negative infinity.
| value | Source Vector2. |
| result | The rounded Vector2. |
Creates a new Vector2 that contains members from another vector rounded towards negative infinity.
| value | Source Vector2. |
|
inline |
Gets the hash code of this Vector2.
|
inlinestatic |
Creates a new Vector2 that contains hermite spline interpolation.
| value1 | The first position vector. |
| tangent1 | The first tangent vector. |
| value2 | The second position vector. |
| tangent2 | The second tangent vector. |
| amount | Weighting factor. |
| result | The hermite spline interpolation vector as an output parameter. |
|
inlinestatic |
Creates a new Vector2 that contains hermite spline interpolation.
| value1 | The first position vector. |
| tangent1 | The first tangent vector. |
| value2 | The second position vector. |
| tangent2 | The second tangent vector. |
| amount | Weighting factor. |
|
inline |
Returns the length of this Vector2.
|
inline |
Returns the squared length of this Vector2.
|
inlinestatic |
Creates a new Vector2 that contains linear interpolation of the specified vectors.
| value1 | The first vector. |
| value2 | The second vector. |
| amount | Weighting value(between 0.0 and 1.0). |
| result | The result of linear interpolation of the specified vectors as an output parameter. |
Creates a new Vector2 that contains linear interpolation of the specified vectors.
| value1 | The first vector. |
| value2 | The second vector. |
| amount | Weighting value(between 0.0 and 1.0). |
|
inlinestatic |
Creates a new Vector2 that contains linear interpolation of the specified vectors.
Uses MathHelper.LerpPrecise on MathHelper for the interpolation. Less efficient but more precise compared to Vector2.Lerp(ref Vector2, ref Vector2, float, out Vector2). See remarks section of MathHelper.LerpPrecise on MathHelper for more info.
| value1 | The first vector. |
| value2 | The second vector. |
| amount | Weighting value(between 0.0 and 1.0). |
| result | The result of linear interpolation of the specified vectors as an output parameter. |
Creates a new Vector2 that contains linear interpolation of the specified vectors.
Uses MathHelper.LerpPrecise on MathHelper for the interpolation. Less efficient but more precise compared to Vector2.Lerp(Vector2, Vector2, float). See remarks section of MathHelper.LerpPrecise on MathHelper for more info.
| value1 | The first vector. |
| value2 | The second vector. |
| amount | Weighting value(between 0.0 and 1.0). |
Creates a new Vector2 that contains a maximal values from the two vectors.
| value1 | The first vector. |
| value2 | The second vector. |
| result | The Vector2 with maximal values from the two vectors as an output parameter. |
Creates a new Vector2 that contains a maximal values from the two vectors.
| value1 | The first vector. |
| value2 | The second vector. |
Creates a new Vector2 that contains a minimal values from the two vectors.
| value1 | The first vector. |
| value2 | The second vector. |
| result | The Vector2 with minimal values from the two vectors as an output parameter. |
Creates a new Vector2 that contains a minimal values from the two vectors.
| value1 | The first vector. |
| value2 | The second vector. |
|
inlinestatic |
Creates a new Vector2 that contains a multiplication of Vector2 and a scalar.
| value1 | Source Vector2. |
| scaleFactor | Scalar value. |
| result | The result of the multiplication with a scalar as an output parameter. |
|
inlinestatic |
Creates a new Vector2 that contains a multiplication of two vectors.
| value1 | Source Vector2. |
| value2 | Source Vector2. |
| result | The result of the vector multiplication as an output parameter. |
Creates a new Vector2 that contains a multiplication of Vector2 and a scalar.
| value1 | Source Vector2. |
| scaleFactor | Scalar value. |
Creates a new Vector2 that contains a multiplication of two vectors.
| value1 | Source Vector2. |
| value2 | Source Vector2. |
Creates a new Vector2 that contains the specified vector inversion.
| value | Source Vector2. |
| result | The result of the vector inversion as an output parameter. |
Creates a new Vector2 that contains the specified vector inversion.
| value | Source Vector2. |
|
inline |
Turns this Vector2 to a unit vector with the same direction.
Creates a new Vector2 that contains a normalized values from another vector.
| value | Source Vector2. |
| result | Unit vector as an output parameter. |
Creates a new Vector2 that contains a normalized values from another vector.
| value | Source Vector2. |
Compares whether two Vector2 instances are not equal.
| value1 | Vector2 instance on the left of the not equal sign. |
| value2 | Vector2 instance on the right of the not equal sign. |
true if the instances are not equal; false otherwise.Multiplies the components of vector by a scalar.
| scaleFactor | Scalar value on the left of the mul sign. |
| value | Source Vector2 on the right of the mul sign. |
Multiplies the components of vector by a scalar.
| value | Source Vector2 on the left of the mul sign. |
| scaleFactor | Scalar value on the right of the mul sign. |
Multiplies the components of two vectors by each other.
| value1 | Source Vector2 on the left of the mul sign. |
| value2 | Source Vector2 on the right of the mul sign. |
Adds two vectors.
| value1 | Source Vector2 on the left of the add sign. |
| value2 | Source Vector2 on the right of the add sign. |
Inverts values in the specified Vector2.
| value | Source Vector2 on the right of the sub sign. |
Subtracts a Vector2 from a Vector2.
| value1 | Source Vector2 on the left of the sub sign. |
| value2 | Source Vector2 on the right of the sub sign. |
Divides the components of a Vector2 by a scalar.
| value1 | Source Vector2 on the left of the div sign. |
| divider | Divisor scalar on the right of the div sign. |
Divides the components of a Vector2 by the components of another Vector2.
| value1 | Source Vector2 on the left of the div sign. |
| value2 | Divisor Vector2 on the right of the div sign. |
Compares whether two Vector2 instances are equal.
| value1 | Vector2 instance on the left of the equal sign. |
| value2 | Vector2 instance on the right of the equal sign. |
true if the instances are equal; false otherwise.
|
inlinestatic |
Creates a new Vector2 that contains reflect vector of the given vector and normal.
| vector | Source Vector2. |
| normal | Reflection normal. |
| result | Reflected vector as an output parameter. |
Creates a new Vector2 that contains reflect vector of the given vector and normal.
| vector | Source Vector2. |
| normal | Reflection normal. |
|
inline |
Round the members of this Vector2 to the nearest integer value.
Creates a new Vector2 that contains members from another vector rounded to the nearest integer value.
| value | Source Vector2. |
| result | The rounded Vector2. |
Creates a new Vector2 that contains members from another vector rounded to the nearest integer value.
| value | Source Vector2. |
|
inlinestatic |
Creates a new Vector2 that contains cubic interpolation of the specified vectors.
| value1 | Source Vector2. |
| value2 | Source Vector2. |
| amount | Weighting value. |
| result | Cubic interpolation of the specified vectors as an output parameter. |
Creates a new Vector2 that contains cubic interpolation of the specified vectors.
| value1 | Source Vector2. |
| value2 | Source Vector2. |
| amount | Weighting value. |
|
inlinestatic |
Creates a new Vector2 that contains subtraction of on Vector2 from a another.
| value1 | Source Vector2. |
| value2 | Source Vector2. |
| result | The result of the vector subtraction as an output parameter. |
Creates a new Vector2 that contains subtraction of on Vector2 from a another.
| value1 | Source Vector2. |
| value2 | Source Vector2. |
|
inline |
Gets a Point representation for this object.
|
inline |
Returns a String representation of this Vector2 in the format: {X:[X] Y:[Y]}.
|
inlinestatic |
Creates a new Vector2 that contains a transformation of 2d-vector by the specified Matrix.
| position | Source Vector2. |
| matrix | The transformation Matrix. |
| result | Transformed Vector2 as an output parameter. |
|
inlinestatic |
Creates a new Vector2 that contains a transformation of 2d-vector by the specified Quaternion, representing the rotation.
| value | Source Vector2. |
| rotation | The Quaternion which contains rotation transformation. |
| result | Transformed Vector2 as an output parameter. |
Creates a new Vector2 that contains a transformation of 2d-vector by the specified Matrix.
| position | Source Vector2. |
| matrix | The transformation Matrix. |
|
inlinestatic |
Creates a new Vector2 that contains a transformation of 2d-vector by the specified Quaternion, representing the rotation.
| value | Source Vector2. |
| rotation | The Quaternion which contains rotation transformation. |
|
inlinestatic |
Apply transformation on vectors within array of Vector2 by the specified Matrix and places the results in an another array.
| sourceArray | Source array. |
| sourceIndex | The starting index of transformation in the source array. |
| matrix | The transformation Matrix. |
| destinationArray | Destination array. |
| destinationIndex | The starting index in the destination array, where the first Vector2 should be written. |
| length | The number of vectors to be transformed. |
|
inlinestatic |
Apply transformation on vectors within array of Vector2 by the specified Quaternion and places the results in an another array.
| sourceArray | Source array. |
| sourceIndex | The starting index of transformation in the source array. |
| rotation | The Quaternion which contains rotation transformation. |
| destinationArray | Destination array. |
| destinationIndex | The starting index in the destination array, where the first Vector2 should be written. |
| length | The number of vectors to be transformed. |
|
inlinestatic |
Apply transformation on all vectors within array of Vector2 by the specified Matrix and places the results in an another array.
| sourceArray | Source array. |
| matrix | The transformation Matrix. |
| destinationArray | Destination array. |
|
inlinestatic |
Apply transformation on all vectors within array of Vector2 by the specified Quaternion and places the results in an another array.
| sourceArray | Source array. |
| rotation | The Quaternion which contains rotation transformation. |
| destinationArray | Destination array. |
|
inlinestatic |
Creates a new Vector2 that contains a transformation of the specified normal by the specified Matrix.
| normal | Source Vector2 which represents a normal vector. |
| matrix | The transformation Matrix. |
| result | Transformed normal as an output parameter. |
Creates a new Vector2 that contains a transformation of the specified normal by the specified Matrix.
| normal | Source Vector2 which represents a normal vector. |
| matrix | The transformation Matrix. |
|
inlinestatic |
Apply transformation on normals within array of Vector2 by the specified Matrix and places the results in an another array.
| sourceArray | Source array. |
| sourceIndex | The starting index of transformation in the source array. |
| matrix | The transformation Matrix. |
| destinationArray | Destination array. |
| destinationIndex | The starting index in the destination array, where the first Vector2 should be written. |
| length | The number of normals to be transformed. |
|
inlinestatic |
Apply transformation on all normals within array of Vector2 by the specified Matrix and places the results in an another array.
| sourceArray | Source array. |
| matrix | The transformation Matrix. |
| destinationArray | Destination array. |
| float Mathf.Vector2.X |
The x coordinate of this Vector2.
| float Mathf.Vector2.Y |
The y coordinate of this Vector2.
|
getpackage |
|
staticget |
Returns a Vector2 with components 1, 1.
|
staticget |
Returns a Vector2 with components 1, 0.
|
staticget |
Returns a Vector2 with components 0, 1.
|
staticget |
Returns a Vector2 with components 0, 0.