- All Superinterfaces:
ShapeProducer
- All Known Implementing Classes:
Triangle2D
Interface specifying a 2D triangle.
-
Method Summary
Methods inherited from interface imagingbook.common.geometry.shape.ShapeProducer
getShape, getShapes, getShapes
-
Method Details
-
getPoints
Returns an array of points used by the triangulation in the order of their insertion.- Returns:
- an array of points
-
getShape
Description copied from interface:ShapeProducer
Returns a scaledShape
for this object (default scale is 1). Must be defined by implementing classes. The interpretation of the scale factor is left to the implementing class. For example, forPnt2d
it specifies the size of the marker (seePnt2d.getShape(double)
.- Specified by:
getShape
in interfaceShapeProducer
- Parameters:
scale
- the scale of the shape- Returns:
- a
Shape
instance
-