normalize

Returns a vector whose length 1 from target vector.

Vector!(T, U)
normalize
(
T
uint U
)
(
const Vector!(T, U) v
)
if (
__traits(isFloating, T)
)

Parameters

v Vector!(T, U)

target vector

Return Value

Type: Vector!(T, U)

normalized target vector

Meta