Class IRectanglesUnion.HorizontalSide

All Implemented Interfaces:
Comparable<IRectanglesUnion.Side>
Enclosing class:
IRectanglesUnion

public static class IRectanglesUnion.HorizontalSide extends IRectanglesUnion.FrameSide
  • Method Details

    • isHorizontal

      public boolean isHorizontal()
      Specified by:
      isHorizontal in class IRectanglesUnion.Side
    • frameSideCoord

      public long frameSideCoord()
      Overrides:
      frameSideCoord in class IRectanglesUnion.Side
    • coord

      public long coord()
      Description copied from class: IRectanglesUnion.Side
      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).
      Specified by:
      coord in class IRectanglesUnion.Side
      Returns:
      the perpendicular coordinate of this side + 0.5
    • from

      public long from()
      Description copied from class: IRectanglesUnion.Side
      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).
      Specified by:
      from in class IRectanglesUnion.Side
      Returns:
      the starting coordinate of this side + 0.5
    • to

      public long to()
      Description copied from class: IRectanglesUnion.Side
      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).
      Specified by:
      to in class IRectanglesUnion.Side
      Returns:
      the ending coordinate of this side + 0.5