Transform

object Transform
Companion:
class
Source:
Transform.scala
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
Source:
Mirror.scala

The name of the type

The name of the type

Inherited from:
Mirror
Source:
Mirror.scala

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).

Source:
Transform.scala
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).

Source:
Transform.scala

Concrete fields

Reflect horizontally (around the Y-axis)

Reflect horizontally (around the Y-axis)

Source:
Transform.scala

Reflect vertically (around the X-axis)

Reflect vertically (around the X-axis)

Source:
Transform.scala