Package net.algart.math.rectangles
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 Summary
Modifier and TypeMethodDescriptionintabstract longcoord()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).booleanlongabstract longfrom()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).inthashCode()booleanabstract booleanbooleanabstract longto()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).toString()
-
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
-
compareTo
- Specified by:
compareToin interfaceComparable<IRectanglesUnion.Side>
-
toString
-
equals
-
hashCode
public int hashCode()
-