Rotation2D

class Rotation2D(angle: Double)

Represents a rotation anticlockwise in 2D.

Parameters

angle

angle in radians, whereas the angle 0.0 corresponds to the x-axis

Constructors

Link copied to clipboard
constructor(angle: Double)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

angle in radians normalized to the interval of [0, 2PI)

Functions

Link copied to clipboard
Link copied to clipboard
operator fun div(m: Rotation2D): Rotation2D
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun fuzzyEquals(o: Rotation2D, tolerance: Double): Boolean
Link copied to clipboard
fun fuzzyUnequals(o: Rotation2D, tolerance: Double): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
operator fun minus(v: Rotation2D): Rotation2D
Link copied to clipboard
operator fun plus(v: Rotation2D): Rotation2D
Link copied to clipboard
operator fun times(m: Rotation2D): Rotation2D
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun toRotation3D(pitch: Double = 0.0, roll: Double = 0.0): Rotation3D
Link copied to clipboard
operator fun unaryMinus(): Rotation2D
Link copied to clipboard
operator fun unaryPlus(): Rotation2D