-
- All Implemented Interfaces:
public final class PointExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static PointmakePoint(Number x, Number y)Creates a Point. final static Pointplus(Point $self, Point p)Sums this and the given Point. final static Pointminus(Point $self, Point p)Subtracts this and the given Point. final static RectanglemakeRectangleWith(Point $self, Point other)Creates a rectangle that has this and other as its opposite-diagonal vertexes. -
-
Method Detail
-
makePoint
final static Point makePoint(Number x, Number y)
Creates a Point.
- Parameters:
x- the x coordinate.y- the y coordinate.
-
plus
final static Point plus(Point $self, Point p)
Sums this and the given Point.
- Parameters:
p- the other point.
-
minus
final static Point minus(Point $self, Point p)
Subtracts this and the given Point.
- Parameters:
p- the other point.
-
makeRectangleWith
final static Rectangle makeRectangleWith(Point $self, Point other)
Creates a rectangle that has this and other as its opposite-diagonal vertexes.
- Parameters:
other- the other vertex.
-
-
-
-