Defines a 2 component vector
Declaration Syntax
C# 
[SerializableAttribute] public struct Vector2 : IEquatable<Vector2>
Members
All Members  Constructors  Methods  Properties  Fields  



Icon  Member  Description 

Vector2(Single) 
Creates a new instance of Vector2.


Vector2(Single, Single) 
Creates a new instance of Vector2.


Add(Vector2%, Vector2%, Vector2%) 
Adds two vectors.


Add(Vector2, Vector2) 
Adds two vectors.


Addition(Vector2, Vector2) 
Adds the two vectors together.


AngleBetween(Vector2, Vector2) 
Compute the angle between two vectors. Both vectors MUST
be normalized.


AngleBetween(Vector2%, Vector2%, Single%) 
Compute the angle between two vectors. Both vectors MUST
be normalized.


Barycentric(Vector2, Vector2, Vector2, Single, Single) 
Returns a Vector2 containing the 2D Cartesian coordinates of a point specified
in barycentric coordinates relative to a 2D triangle.


Barycentric(Vector2%, Vector2%, Vector2%, Single, Single, Vector2%) 
Returns a Vector2 containing the 2D Cartesian coordinates of a point specified
in barycentric coordinates relative to a 2D triangle.


CatmullRom(Vector2, Vector2, Vector2, Vector2, Single) 
Compute CatmullRom interpolation using the the specified positions.


CatmullRom(Vector2%, Vector2%, Vector2%, Vector2%, Single, Vector2%) 
Compute CatmullRom interpolation.


Clamp(Vector2, Vector2, Vector2) 
Restricts the source vector between the range of the minimum and maximum vectors.


Clamp(Vector2%, Vector2%, Vector2%, Vector2%) 
Restricts the source vector between the range of the minimum and maximum vectors.


Distance(Vector2, Vector2) 
Compute the distance between two vectors.


Distance(Vector2%, Vector2%, Single%) 
Compute the distance between two vectors.


DistanceSquared(Vector2, Vector2) 
Compute the distance squared between two vectors.


DistanceSquared(Vector2%, Vector2%, Single%) 
Compute the distance squared between two vectors.


Divide(Vector2, Vector2) 
Divides the components of one vector by the components of the other.


Divide(Vector2%, Vector2%, Vector2%) 
Divides the components of one vector by the components of the other.


Divide(Vector2, Single) 
Divides the components of one vector by a scalar.


Divide(Vector2%, Single, Vector2%) 
Divides the components of one vector by a scalar.


Division(Vector2, Vector2) 
Divides two vectors.


Division(Vector2, Single) 
Divides a vector by a scalar value.


Dot(Vector2, Vector2) 
Compute the dot product between two vectors.


Dot(Vector2%, Vector2%, Single%) 
Compute the dot product between two vectors.


Equality(Vector2, Vector2) 
Tests equality between two vectors.


Equals(Vector2) 
Tests equality between this vector and another vector.


Equals(Object) 
Tests equality between this vector and the supplied object.
(Overrides ValueType.Equals(Object).) 

GetHashCode()()()() 
Get the object's hash code.
(Overrides ValueType.GetHashCode()()()().) 

GetType()()()() 
Gets the Type of the current instance. (Inherited from Object.) 

Hermite(Vector2, Vector2, Vector2, Vector2, Single) 
Compute a Hermite spline interpolation.


Hermite(Vector2%, Vector2%, Vector2%, Vector2%, Single, Vector2%) 
Compute a Hermite spline interpolation.


Inequality(Vector2, Vector2) 
Tests inequality between two vectors.


Length()()()() 
Compute the count (magnitude) of this vector.


LengthSquared()()()() 
Compute count (magnitude), squared, of this vector.


Lerp(Vector2, Vector2, Single) 
Linearly interpolates between two vectors.


Lerp(Vector2%, Vector2%, Single, Vector2%) 
Linearly interpolates between two vectors.


Max(Vector2, Vector2) 
Get the vector that contains the maximum value from each of the components of the
two supplied vectors.


Max(Vector2%, Vector2%, Vector2%) 
Get the vector that contains the maximum value from each of the components of the
two supplied vectors.


Min(Vector2, Vector2) 
Get the vector that contains the mininum value from each of the components of the
two supplied vectors.


Min(Vector2%, Vector2%, Vector2%) 
Get the vector that contains the mininum value from each of the components of the
two supplied vectors.


Multiply(Vector2, Vector2) 
Multiplies components of two vectors together.


Multiply(Vector2%, Vector2%, Vector2%) 
Multiplies components of two vectors together.


Multiply(Vector2, Single) 
Multiplies components of a vector by a scalar value.


Multiply(Vector2%, Single, Vector2%) 
Multiplies components of a vector by a scalar value.


Multiply(Vector2, Vector2) 
Multiplies two vectors together.


Multiply(Vector2, Single) 
Multiplies a vector by a scaling factor.


Multiply(Single, Vector2) 
Multiplies a vector by a scaling factor.


Negate()()()() 
Flip the signs of the components of this vector.


Negate(Vector2) 
Flip the signs of the vector's components.


Negate(Vector2%, Vector2%) 
Flip the signs of the vector's components.


Normalize()()()() 
Normalize this vector to a unit vector, which results in a vector with a count of 1 but
perserves the direction the vector was pointing in.


Normalize(Vector2) 
Normalize the surce vector to a unit vector, which results in a vector with a count of 1 but
perserves the direction the vector was pointing in.


Normalize(Vector2%, Vector2%) 
Normalize the surce vector to a unit vector, which results in a vector with a count of 1 but
perserves the direction the vector was pointing in.


One 
Gets a Vector2 set to (1, 1).


Reflect(Vector2, Vector2) 
Compute the reflection vector off a surface with the specified normal.


Reflect(Vector2%, Vector2%, Vector2%) 
Compute the reflection vector off a surface with the specified normal.


SizeInBytes 
Gets the size of the Vector2 structure in bytes.


SmallestAngleBetween(Vector2, Vector2) 
Compute the smallest angle between two vectors. Both vectors MUST
be normalized.


SmallestAngleBetween(Vector2%, Vector2%, Single%) 
Compute the smallest angle between two vectors. Both vectors MUST
be normalized.


SmoothStep(Vector2, Vector2, Single) 
Compute a cubic interpolation between two vectors.


SmoothStep(Vector2%, Vector2%, Single, Vector2%) 
Compute a cubic interpolation between two vectors.


Subtract(Vector2, Vector2) 
Subtracts a vector from a vector.


Subtract(Vector2%, Vector2%, Vector2%) 
Subtracts a vector from a vector.


Subtraction(Vector2, Vector2) 
Subtracts a vector from another.


ToString()()()() 
Get a string representation for the object.
(Overrides ValueType.ToString()()()().) 

Transform(Vector2, Matrix) 
Transforms the 2D vector by the specified transformation matrix.


Transform(Vector2%, Matrix%, Vector2%) 
Transforms the 2D vector by the specified transformation matrix.


Transform(Vector2, Quaternion) 
Transforms the 2D vector by the specified rotation quaternion.


Transform(Vector2%, Quaternion%, Vector2%) 
Transforms the 2D vector by the specified quaternion.


UnaryNegation(Vector2) 
Flips the signs of the components of the specified vector.


UnitX 
Gets a unit Vector2 set to (1, 0).


UnitY 
Gets a unit Vector2 set to (0, 1).


X 
X component of this vector.


Y 
Y component of this vector.


Zero 
Gets a Vector2 set to (0, 0).

Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)