magnitude

fun magnitude(vector: Vec2): Float
fun magnitude(vector: Vec3): Float

Returns the magnitude of the given vector.