Transform

object Transform
Companion
class
trait Product
trait Mirror
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def logicalToScreen(width: Double, height: Double): Transform

Convert from the usual cartesian coordinate system (origin in the center, x and y increase towards the top right) to usual screen coordinate system (origin in the top left, x and y increase to the bottom right).

Convert from the usual cartesian coordinate system (origin in the center, x and y increase towards the top right) to usual screen coordinate system (origin in the top left, x and y increase to the bottom right).

def rotate(angle: Angle): Transform
def scale(x: Double, y: Double): Transform
def screenToLogical(width: Double, height: Double): Transform

Convert from the usual screen coordinate system (origin in the top left, x and y increase to the bottom right) to the usual cartesian coordinate system (origin in the center, x and y increase towards the top right).

Convert from the usual screen coordinate system (origin in the top left, x and y increase to the bottom right) to the usual cartesian coordinate system (origin in the center, x and y increase towards the top right).

def translate(x: Double, y: Double): Transform

Concrete fields

Reflect horizontally (around the Y-axis)

Reflect horizontally (around the Y-axis)

Reflect vertically (around the X-axis)

Reflect vertically (around the X-axis)