Offset2D

data class Offset2D<T : Number>(val x: T, val y: T)

A 2D offset.

Constructors

Link copied to clipboard
constructor(x: T, y: T)

Creates a new absolute 2D offset.

Properties

Link copied to clipboard
val x: T
Link copied to clipboard
val y: T

Functions

Link copied to clipboard
operator fun plus(other: Offset2D<T>): Offset2D<T>
Link copied to clipboard

Rotates this offset by the given angle thetaDeg.