﻿Vector2 Methods  Vector2 Methods

The Vector2 type exposes the following members. Methods
NameDescription  Barycentric
Creates a new Vector2 that contains the cartesian coordinates of a vector specified in barycentric coordinates and relative to 2d-triangle.  CatmullRom
Creates a new Vector2 that contains CatmullRom interpolation of the specified vectors.  Clamp
Clamps the specified value within a range.  Distance
Returns the distance between two vectors.  DistanceSquared
Returns the squared distance between two vectors. DistanceTo
Gets the distance to another Vector2.  Dot
Returns a dot product of two vectors. Equals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).) Equals(Vector2)
Indicates whether this instance and a specified object are equal. GetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.) GetType
Gets the Type of the current instance.
(Inherited from Object.)  Hermite
Creates a new Vector2 that contains hermite spline interpolation.  Lerp
Creates a new Vector2 that contains linear interpolation of the specified vectors.  Max
Creates a new Vector2 that contains a maximal values from the two vectors.  Min
Creates a new Vector2 that contains a minimal values from the two vectors.  Normalize
Creates a new Vector2 that contains a normalized values from another vector. Normalized
Creates a new Vector2 instance with the components normalized to a single unit.  Reflect
Creates a new Vector2 that contains reflect vector of the given vector and normal.  SmoothStep
Creates a new Vector2 that contains cubic interpolation of the specified vectors. ToString
Returns the fully qualified type name of this instance.
(Overrides ValueTypeToString.)  Transform(Vector2, Matrix)
Creates a new Vector2 that contains a transformation of 2d-vector by the specified Matrix.  Transform(Vector2, Quaternion)
Creates a new Vector2 that contains a transformation of 2d-vector by the specified Quaternion, representing the rotation.  TransformNormal
Creates a new Vector2 that contains a transformation of the specified normal by the specified Matrix.
Top See Also