java.lang.Object
imagingbook.common.geometry.delaunay.guibas.Edge2D
This class represents a 2D edge (line segment), specified by its two end-points. Instances of this class are
immutable.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassNon-static inner class representing the distance of a particular point to the associated (enclosing)Edge2Dinstance. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Edge2D.DistancedistanceFromPoint(Pnt2d point) Creates and returns a newEdge2D.Distanceobject, representing the minimum distance between this edge and the specified point.
-
Field Details
-
a
-
b
-
-
Constructor Details
-
Edge2D
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 edgeb- second vertex of the edge
-
-
Method Details
-
distanceFromPoint
Creates and returns a newEdge2D.Distanceobject, representing the minimum distance between this edge and the specified point.- Parameters:
point- the point to calculate the distance for- Returns:
- a new
Edge2D.Distanceinstance
-