Class IRectanglesUnion.Side

java.lang.Object
net.algart.math.rectangles.IRectanglesUnion.Side
All Implemented Interfaces:
Comparable<IRectanglesUnion.Side>
Direct Known Subclasses:
IRectanglesUnion.FrameSide
Enclosing class:
IRectanglesUnion

public abstract static class IRectanglesUnion.Side extends Object implements Comparable<IRectanglesUnion.Side>
  • Method Details

    • isFirstOfTwoParallelSides

      public boolean isFirstOfTwoParallelSides()
    • isSecondOfTwoParallelSides

      public boolean isSecondOfTwoParallelSides()
    • isHorizontal

      public abstract boolean isHorizontal()
    • frameSideCoord

      public long frameSideCoord()
    • coord

      public abstract long coord()
      Returns the coordinate of this frame side along the coordinate axis, to which this side is perpendicular, increased by 0.5 (the sides always have half-integer coordinates).
      Returns:
      the perpendicular coordinate of this side + 0.5
    • from

      public abstract long from()
      Returns the starting coordinate of this frame side along the coordinate axis, to which this link is parallel, increased by 0.5 (the sides always have half-integer coordinates).
      Returns:
      the starting coordinate of this side + 0.5
    • to

      public abstract long to()
      Returns the ending coordinate of this frame side along the coordinate axis, to which this link is parallel, increased by 0.5 (the sides always have half-integer coordinates).
      Returns:
      the ending coordinate of this side + 0.5
    • equivalentRectangle

      public IRectangularArea equivalentRectangle()
    • compareTo

      public int compareTo(IRectanglesUnion.Side o)
      Specified by:
      compareTo in interface Comparable<IRectanglesUnion.Side>
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object