Transform.fromRotation

Constructs a new Transform representing a 2D rotation.

struct Transform(T, uint Dim, TransformOptions options = TransformOptions.none)
static
static if(Dim >= 2)
fromRotation
(
const FT angle
)
if (
Dim > 0
)

Parameters

angle FT

Rotation angle in radians

Meta