Vector.isUnit

It's a unitary vector (length == 1) Returns : True if length approxEqual to 1.0

struct Vector(T, size_t dim_)
nothrow @property @nogc pure const
bool
isUnit
()
if (
__traits(isFloating, T)
)

Meta