method

magnitude

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: Vector
magnitude() public

Returns the modulus (Pythagorean distance) of the vector.

Vector[5,8,2].r => 9.643650761
Show source
Register or log in to add new notes.