java.lang.Object
imagingbook.common.geometry.delaunay.guibas.Edge2D

public class Edge2D extends Object
This class represents a 2D edge (line segment), specified by its two end-points. Instances of this class are immutable.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
    Non-static inner class representing the distance of a particular point to the associated (enclosing) Edge2D instance.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Pnt2d
     
    protected final Pnt2d
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Constructor of the 2D edge class used to create a new edge instance from two 2D vectors describing the edge's vertices.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Edge2D.Distance
    Creates and returns a new Edge2D.Distance object, representing the minimum distance between this edge and the specified point.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Edge2D

      protected Edge2D(Pnt2d a, Pnt2d b)
      Constructor of the 2D edge class used to create a new edge instance from two 2D vectors describing the edge's vertices.
      Parameters:
      a - first vertex of the edge
      b - second vertex of the edge
  • Method Details