of

fun of(angleDegree: Double): Rotation2D

Create a Rotation2D from an angle provided in degrees.


fun of(direction: Vector2D): Rotation2D

Creates a Rotation2D which is defined from the x axis to the given direction vector.