Vector.rotate

Rotation in R2

struct Vector(T, size_t dim_)
nothrow @nogc pure const
static if(dim == 2)
rotate
(
real angle
)
if (
__traits(isFloating, T)
)

Parameters

angle real

Rotation angle Returns : A new vector that is the rotation of this vector

Meta