Package net.algart.math.rectangles
Class IRectanglesUnion.VerticalSide
java.lang.Object
net.algart.math.rectangles.IRectanglesUnion.Side
net.algart.math.rectangles.IRectanglesUnion.FrameSide
net.algart.math.rectangles.IRectanglesUnion.VerticalSide
- All Implemented Interfaces:
Comparable<IRectanglesUnion.Side>
- Enclosing class:
IRectanglesUnion
-
Method Summary
Modifier and TypeMethodDescriptionlong
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).long
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).boolean
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).Methods inherited from class net.algart.math.rectangles.IRectanglesUnion.FrameSide
frame
Methods inherited from class net.algart.math.rectangles.IRectanglesUnion.Side
compareTo, equals, equivalentRectangle, hashCode, isFirstOfTwoParallelSides, isSecondOfTwoParallelSides, toString
-
Method Details
-
isHorizontal
public boolean isHorizontal()- Specified by:
isHorizontal
in classIRectanglesUnion.Side
-
frameSideCoord
public long frameSideCoord()- Overrides:
frameSideCoord
in classIRectanglesUnion.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 classIRectanglesUnion.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 classIRectanglesUnion.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 classIRectanglesUnion.Side
- Returns:
- the ending coordinate of this side + 0.5
-