Interface Triangle

All Superinterfaces:
ShapeProducer
All Known Implementing Classes:
Triangle2D

public interface Triangle extends ShapeProducer
Interface specifying a 2D triangle.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns an array of points used by the triangulation in the order of their insertion.
    default Shape
    getShape(double scale)
    Returns a scaled Shape for this object (default scale is 1).

    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

      default Shape getShape(double scale)
      Description copied from interface: ShapeProducer
      Returns a scaled Shape 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, for Pnt2d it specifies the size of the marker (see Pnt2d.getShape(double).
      Specified by:
      getShape in interface ShapeProducer
      Parameters:
      scale - the scale of the shape
      Returns:
      a Shape instance