data class ScaledPoint
This class represents a point on the ZoomEngine content surface.
It is scaled because, unlike AbsolutePoint, it is affected by the current zoom level. If content is zoomed in, the exact same content point will have bigger ScaledPoint coordinates.
ScaledPoint(point: ScaledPoint)
Copy constructor ScaledPoint(x: Float = 0F, y: Float = 0F)
This class represents a point on the ZoomEngine content surface. |
var x: Float |
|
var y: Float |
operator fun minus(scaledPoint: ScaledPoint): ScaledPoint
Substract a point from another point |
|
operator fun plus(scaledPoint: ScaledPoint): ScaledPoint
Add a point to another point |
|
fun set(x: Number = this.x, y: Number = this.y): Unitfun set(p: ScaledPoint): Unit
Set new coordinates |
|
operator fun times(factor: Number): ScaledPoint
Multiply every value in the point by a given factor |
|
operator fun unaryMinus(): ScaledPoint
Negate a point |