- 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:ShapeProducerReturns a scaledShapefor 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, forPnt2dit specifies the size of the marker (seePnt2d.getShape(double).- Specified by:
getShapein interfaceShapeProducer- Parameters:
scale- the scale of the shape- Returns:
- a
Shapeinstance
-