DirectXMath Library 2D Vector Geometric Functions

Lists the 2D vector geometric functions.

In this section

TopicDescription

XMVector2AngleBetweenNormals

Computes the radian angle between two normalized 2D vectors.

XMVector2AngleBetweenNormalsEst

Estimates the radian angle between two normalized 2D vectors.

XMVector2AngleBetweenVectors

Computes the radian angle between two 2D vectors.

XMVector2ClampLength

Clamps the length of a 2D vector to a given range.

XMVector2ClampLengthV

Clamps the length of a 2D vector to a given range.

XMVector2Cross

Computes the 2D cross product.

XMVector2Dot

Computes the dot product between 2D vectors.

XMVector2InBounds

Tests whether the components of a 2D vector are within set bounds.

XMVector2IntersectLine

Finds the intersection of two lines.

XMVector2Length

Computes the length of a 2D vector.

XMVector2LengthEst

Estimates the length of a 2D vector.

XMVector2LengthSq

Computes the square of the length of a 2D vector.

XMVector2LinePointDistance

Computes the minimum distance between a line and a point.

XMVector2Normalize

Returns the normalized version of a 2D vector.

XMVector2NormalizeEst

Estimates the normalized version of a 2D vector.

XMVector2Orthogonal

Computes a vector perpendicular to a 2D vector.

XMVector2ReciprocalLength

Computes the reciprocal of the length of a 2D vector.

XMVector2ReciprocalLengthEst

Estimates the reciprocal of the length of a 2D vector.

XMVector2Reflect

Reflects an incident 2D vector across a 2D normal vector.

XMVector2Refract

Refracts an incident 2D vector across a 2D normal vector.

XMVector2RefractV

Refracts an incident 2D vector across a 2D normal vector.

 

Related topics

DirectXMath Library 2D Vector Functions

 

 

Show: