Package ome.util.math.geom2D
Interface PlaneArea
-
- All Superinterfaces:
Copiable,java.awt.Shape
- All Known Implementing Classes:
EllipseArea,RectangleArea
public interface PlaneArea extends Copiable, java.awt.Shape
Interface that all areas of the Euclidean space R2 must implement.- Since:
- OME2.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PlanePoint[]getPoints()Returns an array ofPlanePointcontained in the PlaneArea.booleanonBoundaries(double x, double y)Controls if a specified point is on the boundary of the PlaneArea.voidscale(double factor)Resets the boundingRectangleof the planeArea according to the specified scaling factor.voidsetBounds(int x, int y, int width, int height)Sets the boundingRectangleof the planeArea to the specified x, y, width, and height.
-
-
-
Method Detail
-
setBounds
void setBounds(int x, int y, int width, int height)Sets the boundingRectangleof the planeArea to the specified x, y, width, and height.- Parameters:
x- The x-coordinate of the top-left corner.y- The y-coordinate of the top-left corner.width- The width of the area.height- The height of the area.
-
scale
void scale(double factor)
Resets the boundingRectangleof the planeArea according to the specified scaling factor.- Parameters:
factor- The scaling factor.
-
getPoints
PlanePoint[] getPoints()
Returns an array ofPlanePointcontained in the PlaneArea.- Returns:
- See above.
-
onBoundaries
boolean onBoundaries(double x, double y)Controls if a specified point is on the boundary of the PlaneArea.- Parameters:
x- The x-coordinate of the point.y- The y-coordinate of the point.- Returns:
trueif the point is on the boundary,falseotherwise.
-
-