data class AbsolutePoint
This class represents a point on the ZoomEngine content surface.
It is absolute because it is defined with respect to the content own size & coordinate system, meaning that 0, 0 represents the content top-left corner.
AbsolutePoint(point: AbsolutePoint)
Copy constructor AbsolutePoint(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(absolutePoint: AbsolutePoint): AbsolutePoint
Substract a point from another point |
|
operator fun plus(absolutePoint: AbsolutePoint): AbsolutePoint
Add a point to another point |
|
fun set(x: Number = this.x, y: Number = this.y): Unitfun set(p: AbsolutePoint): Unit
Set new coordinates |
|
operator fun times(factor: Number): AbsolutePoint
Multiply every value in the point by a given factor |
|
operator fun unaryMinus(): AbsolutePoint
Negate a point |