norm

Computes the Euclidean norm (magnitude) of a vector defined by its x and y components.

Return

The Euclidean norm of the vector.

Parameters

x

The x component of the vector.

y

The y component of the vector.


fun norm(x: Double, y: Double, z: Double): Double(source)

Computes the Euclidean norm (magnitude) of a vector defined by its x, y, and z components.

Return

The Euclidean norm of the vector.

Parameters

x

The x component of the vector.

y

The y component of the vector.

z

The z component of the vector.