Package net.algart.math.rectangles
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 Summary
Modifier and TypeMethodDescriptionbooleanbooleanintlongcoord()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).booleanabstract IRectangularArealongfrom()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).inthashCode()abstract booleanabstract IRectanglesUnion.BoundaryLinklinkFrom()abstract IRectanglesUnion.BoundaryLinklinkTo()longto()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).toString()
-
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
-
linkTo
-
equivalentRectangle
-
compareTo
- Specified by:
compareToin interfaceComparable<IRectanglesUnion.BoundaryLink>
-
toString
-
equals
-
hashCode
public int hashCode()
-