Vector2.Hypot(Vector2, Vector2) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Computes the hypotenuse given two vectors representing the lengths of the shorter sides in a right-angled triangle.
public:
static System::Numerics::Vector2 Hypot(System::Numerics::Vector2 x, System::Numerics::Vector2 y);
public static System.Numerics.Vector2 Hypot(System.Numerics.Vector2 x, System.Numerics.Vector2 y);
static member Hypot : System.Numerics.Vector2 * System.Numerics.Vector2 -> System.Numerics.Vector2
Public Shared Function Hypot (x As Vector2, y As Vector2) As Vector2
Parameters
- x
- Vector2
The vector to square and add to y.
- y
- Vector2
The vector to square and add to x.
Returns
The square root of x-squared plus y-squared.