Class IRectanglesUnion.BoundaryLink

java.lang.Object
net.algart.math.rectangles.IRectanglesUnion.BoundaryLink
All Implemented Interfaces:
Comparable<IRectanglesUnion.BoundaryLink>
Direct Known Subclasses:
IRectanglesUnion.HorizontalBoundaryLink, IRectanglesUnion.VerticalBoundaryLink
Enclosing class:
IRectanglesUnion

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

    • atFirstOfTwoParallelSides

      public boolean atFirstOfTwoParallelSides()
    • atSecondOfTwoParallelSides

      public boolean atSecondOfTwoParallelSides()
    • isHorizontal

      public abstract boolean isHorizontal()
    • coord

      public long coord()
      Returns the coordinate of this boundary element (link) along the coordinate axis, to which this link is perpendicular, increased by 0.5 (the bounrady always has half-integer coordinate).
      Returns:
      the perpendicular coordinate of this link + 0.5
    • from

      public long from()
      Returns the starting coordinate of this boundary element (link) along the coordinate axis, to which this link is parallel, increased by 0.5 (the bounrady always has half-integer coordinate).
      Returns:
      the starting coordinate of this link + 0.5
    • to

      public long to()
      Returns the ending coordinate of this boundary element (link) along the coordinate axis, to which this link is parallel, increased by 0.5 (the bounrady always has half-integer coordinate).
      Returns:
      the ending coordinate of this link + 0.5
    • linkFrom

      public abstract IRectanglesUnion.BoundaryLink linkFrom()
    • linkTo

      public abstract IRectanglesUnion.BoundaryLink linkTo()
    • equivalentRectangle

      public abstract IRectangularArea equivalentRectangle()
    • compareTo

      public int compareTo(IRectanglesUnion.BoundaryLink o)
      Specified by:
      compareTo in interface Comparable<IRectanglesUnion.BoundaryLink>
    • 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