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 ofPlanePoint
contained in the PlaneArea.boolean
onBoundaries(double x, double y)
Controls if a specified point is on the boundary of the PlaneArea.void
scale(double factor)
Resets the boundingRectangle
of the planeArea according to the specified scaling factor.void
setBounds(int x, int y, int width, int height)
Sets the boundingRectangle
of 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 boundingRectangle
of 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 boundingRectangle
of the planeArea according to the specified scaling factor.- Parameters:
factor
- The scaling factor.
-
getPoints
PlanePoint[] getPoints()
Returns an array ofPlanePoint
contained 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:
true
if the point is on the boundary,false
otherwise.
-
-