The standard hypot() function for three arguments taking care of overflows and zerodivides.

Syntax

Visual Basic (Declaration)
Public Shared Function hypot ( _
	x As Single, _
	y As Single, _
	z As Single _
) As Single
C#
public static float hypot (
	float x,
	float y,
	float z
)
C++
public:
static float hypot (
	float x, 
	float y, 
	float z
)

Parameters

x (Single)
First argument.
y (Single)
Second argument.
z (Single)
Third argument.

Return Value

Square root of the sum of x-square, y-square and z-square.