Rot

data class Rot(val cos: Float, val sin: Float)

2D rotation represented as cosine and sine of the angle. This is more efficient than storing the angle directly.

Constructors

Link copied to clipboard
constructor(cos: Float, sin: Float)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val cos: Float
Link copied to clipboard
val sin: Float

Functions

Link copied to clipboard
fun inverse(): Rot
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
operator fun times(other: Rot): Rot