Camera

data class Camera(var x: Double = 0.0, var y: Double = 0.0, var zoom: Double = 1.0, var angle: Angle = 0.degrees, var anchorX: Double = 0.5, var anchorY: Double = 0.5) : MutableInterpolable<Camera>

Constructors

Link copied to clipboard
constructor(x: Double = 0.0, y: Double = 0.0, zoom: Double = 1.0, angle: Angle = 0.degrees, anchorX: Double = 0.5, anchorY: Double = 0.5)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var x: Double
Link copied to clipboard
var y: Double
Link copied to clipboard

Functions

Link copied to clipboard
fun copyFrom(source: Camera): Camera
Link copied to clipboard
fun posEasing(zoomLeft: Double, zoomRight: Double, lx: Double, rx: Double, it: Double): Double
Link copied to clipboard
fun setAnchorRatioKeepingPos(anchorX: Double, anchorY: Double, width: Double, height: Double)
Link copied to clipboard
fun setTo(x: Double = 0.0, y: Double = 0.0, zoom: Double = 1.0, angle: Angle = 0.degrees, anchorX: Double = 0.5, anchorY: Double = 0.5): Camera
Link copied to clipboard
open override fun setToInterpolated(ratio: Ratio, l: Camera, r: Camera): Camera