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.
<init> |
Copy constructor AbsolutePoint(point: AbsolutePoint)
This class represents a point on the ZoomEngine content surface. AbsolutePoint(x: Float = 0F, y: Float = 0F) |
x |
var x: Float |
y |
var y: Float |
minus |
Substract a point from another point operator fun minus(absolutePoint: AbsolutePoint): AbsolutePoint |
plus |
Add a point to another point operator fun plus(absolutePoint: AbsolutePoint): AbsolutePoint |
set |
Set new coordinates fun set(x: Number = this.x, y: Number = this.y): Unitfun set(p: AbsolutePoint): Unit |
times |
Multiply every value in the point by a given factor operator fun times(factor: Number): AbsolutePoint |
unaryMinus |
Negate a point operator fun unaryMinus(): AbsolutePoint |