-
public final class AbsolutePointThis 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.
-
-
Constructor Summary
Constructors Constructor Description AbsolutePoint(AbsolutePoint point)Copy constructor AbsolutePoint(Float x, Float y)
-
Method Summary
Modifier and Type Method Description final FloatgetX()final UnitsetX(Float x)final FloatgetY()final UnitsetY(Float y)final Unitset(Number x, Number y)Set new coordinates final Unitset(Number x)Set new coordinates final Unitset()Set new coordinates final Unitset(AbsolutePoint p)Set new coordinates final AbsolutePointminus(AbsolutePoint absolutePoint)Substract a point from another point final AbsolutePointunaryMinus()Negate a point final AbsolutePointplus(AbsolutePoint absolutePoint)Add a point to another point final AbsolutePointtimes(Number factor)Multiply every value in the point by a given factor -
-
Constructor Detail
-
AbsolutePoint
AbsolutePoint(AbsolutePoint point)
Copy constructor- Parameters:
point- point to duplicate
-
-
Method Detail
-
set
@JvmOverloads() final Unit set(Number x, Number y)
Set new coordinates
- Parameters:
x- x-axis valuey- y-axis value
-
set
@JvmOverloads() final Unit set(Number x)
Set new coordinates
- Parameters:
x- x-axis value
-
set
@JvmOverloads() final Unit set()
Set new coordinates
-
set
final Unit set(AbsolutePoint p)
Set new coordinates
- Parameters:
p- the AbsolutePoint to copy values from
-
minus
final AbsolutePoint minus(AbsolutePoint absolutePoint)
Substract a point from another point
- Parameters:
absolutePoint- the point to substract
-
unaryMinus
final AbsolutePoint unaryMinus()
Negate a point
-
plus
final AbsolutePoint plus(AbsolutePoint absolutePoint)
Add a point to another point
- Parameters:
absolutePoint- the point to add
-
times
final AbsolutePoint times(Number factor)
Multiply every value in the point by a given factor
- Parameters:
factor- the factor to use
-
-
-
-