normalize

fun normalize(res: Vec2)

Computes the normalized vector for the given vector @v.

Since

1.0

Parameters

res

return location for the normalized vector