1 out of 1 rated this helpful - Rate this topic

# Vector2 Members

XNA Game Studio 2.0

The following tables list the members exposed by the Vector2 type.

NameDescription
Vector2Overloaded. Initializes a new instance of Vector2.
NameDescription
XGets or sets the x-component of the vector.
YGets or sets the y-component of the vector.
NameDescription
OneReturns a Vector2 with both of its components set to one.
UnitXReturns the unit vector for the x-axis.
UnitYReturns the unit vector for the y-axis.
ZeroReturns a Vector2 with all of its components set to zero.
NameDescription
BarycentricOverloaded. Returns a Vector2 containing the 2D Cartesian coordinates of a point specified in 2D barycentric (areal) coordinates.
CatmullRomOverloaded. Performs a Catmull-Rom interpolation using the specified positions.
ClampOverloaded. Restricts a value to be within a specified range.
DistanceOverloaded. Calculates the distance between two vectors.
DistanceSquaredOverloaded. Calculates the distance between two vectors squared.
DivideOverloaded. Divides a vector by a scalar or another vector.
DotOverloaded. Calculates the dot product of two vectors.
EqualsOverloaded. Returns a value that indicates whether the current instance is equal to a specified object.
GetHashCodeGets the hash code of the vector object.
GetType (Inherited from Object.)
HermiteOverloaded. Performs a Hermite spline interpolation.
LengthCalculates the length of the vector.
LengthSquaredCalculates the length of the vector squared.
LerpOverloaded. Performs a linear interpolation between two vectors.
MaxOverloaded. Returns a vector that contains the highest value from each matching pair of components.
MinOverloaded. Returns a vector that contains the lowest value from each matching pair of components.
MultiplyOverloaded. Multiplies a vector by a scalar or another vector.
NegateOverloaded. Returns a vector pointing in the opposite direction.
NormalizeOverloaded. Creates a unit vector from the specified vector.
op_DivisionOverloaded. Divide a vector by a scalar or another vector.
op_EqualityTests vectors for equality.
op_InequalityTests vectors for inequality.
op_MultiplyOverloaded. Multiplies a vector by a scalar or another vector.
op_SubtractionSubtracts a vector from a vector.
op_UnaryNegationReturns a vector pointing in the opposite direction.
ReferenceEquals (Inherited from Object.)
ReflectOverloaded. Determines the reflect vector of the given vector and normal.
SmoothStepOverloaded. Interpolates between two values using a cubic equation.
SubtractOverloaded. Subtracts a vector from a vector.
ToStringRetrieves a string representation of the current object.
TransformOverloaded. Transforms one or more Vector2s by a Matrix or Quaternion.
TransformNormalOverloaded. Transforms a vector normal or array of vector normals by a matrix.
NameDescription
Finalize (Inherited from Object.)
MemberwiseClone (Inherited from Object.)