Package 

Class PointExtensionsKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Point makePoint(Number x, Number y) Creates a Point.
      final static Point plus(Point $self, Point p) Sums this and the given Point.
      final static Point minus(Point $self, Point p) Subtracts this and the given Point.
      final static Rectangle makeRectangleWith(Point $self, Point other) Creates a rectangle that has this and other as its opposite-diagonal vertexes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • 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.