Windows apps
Collapse the table of content
Expand the table of content

Vector2::LengthSquared Method

Returns the length of the vector squared.

Namespace:  System.Numerics
Assembly:  System.Numerics.Vectors (in System.Numerics.Vectors.dll)

public:
float LengthSquared()

Return Value

Type: System::Single
The vector's length squared.

This operation offers better performance than a call to the Length method.

Show:
© 2017 Microsoft