Contents
How to create a Vector2 structure in XNA?
Gets the unit vector for the x-axis. Gets the unit vector for the y-axis. Gets a Vector2 with all of its components set to zero. Adds two vectors. Adds two vectors. Returns a Vector2 containing the 2D Cartesian coordinates of a point specified in barycentric (areal) coordinates relative to a 2D triangle.
What is the dot product of a vector?
If the two vectors are unit vectors, the dot product returns a floating point value between -1 and 1 that can be used to determine some properties of the angle between two vectors. For example, it can show whether the vectors are orthogonal, parallel, or have an acute or obtuse angle between them.
How to transform a Vector2 into a matrix?
Transforms a single Vector2, or the vector normal (x, y, 0, 0), by a specified Quaternion rotation. Transforms a Vector2 by the given Matrix. Transforms a Vector2, or the vector normal (x, y, 0, 0), by a specified Quaternion rotation. Transforms an array of Vector2 instances by a specified Matrix.
How to create a vector with two components?
Defines a vector with two components. The Vector2 type exposes the following members. Creates a new instance of Vector2. Initializes a new instance of Vector2. Gets a Vector2 with both of its components set to one. Gets the unit vector for the x-axis. Gets the unit vector for the y-axis. Gets a Vector2 with all of its components set to zero.
How to turn a vector into a unit?
Turns the current vector into a unit vector. The result is a vector one unit in length pointing in the same direction as the original vector. Creates a unit vector from the specified vector.
How to add two vectors to a Vector2?
Gets a Vector2 with both of its components set to one. Gets the unit vector for the x-axis. Gets the unit vector for the y-axis. Gets a Vector2 with all of its components set to zero. Adds two vectors. Adds two vectors.