Package net.algart.math.rectangles
Class IRectanglesUnion.HorizontalSide
java.lang.Object
net.algart.math.rectangles.IRectanglesUnion.Side
net.algart.math.rectangles.IRectanglesUnion.FrameSide
net.algart.math.rectangles.IRectanglesUnion.HorizontalSide
- All Implemented Interfaces:
Comparable<IRectanglesUnion.Side>
- Enclosing class:
IRectanglesUnion
-
Method Summary
Modifier and TypeMethodDescriptionlongcoord()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).longlongfrom()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).booleanlongto()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
frameMethods inherited from class net.algart.math.rectangles.IRectanglesUnion.Side
compareTo, equals, equivalentRectangle, hashCode, isFirstOfTwoParallelSides, isSecondOfTwoParallelSides, toString
-
Method Details
-
isHorizontal
public boolean isHorizontal()- Specified by:
isHorizontalin classIRectanglesUnion.Side
-
frameSideCoord
public long frameSideCoord()- Overrides:
frameSideCoordin classIRectanglesUnion.Side
-
coord
public long coord()Description copied from class:IRectanglesUnion.SideReturns 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:
coordin classIRectanglesUnion.Side- Returns:
- the perpendicular coordinate of this side + 0.5
-
from
public long from()Description copied from class:IRectanglesUnion.SideReturns 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:
fromin classIRectanglesUnion.Side- Returns:
- the starting coordinate of this side + 0.5
-
to
public long to()Description copied from class:IRectanglesUnion.SideReturns 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:
toin classIRectanglesUnion.Side- Returns:
- the ending coordinate of this side + 0.5
-