normalize

fun normalize(vector: Vec2): Vec2
fun normalize(vector: Vec3): Vec3

Returns a unit vector in the direction of the given vector.