Vector3.Hypot(Vector3, Vector3) 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::Vector3 Hypot(System::Numerics::Vector3 x, System::Numerics::Vector3 y);
public static System.Numerics.Vector3 Hypot(System.Numerics.Vector3 x, System.Numerics.Vector3 y);
static member Hypot : System.Numerics.Vector3 * System.Numerics.Vector3 -> System.Numerics.Vector3
Public Shared Function Hypot (x As Vector3, y As Vector3) As Vector3
Parameters
- x
- Vector3
The vector to square and add to y.
- y
- Vector3
The vector to square and add to x.
Returns
The square root of x-squared plus y-squared.