Computes the diameter of a 2d convex hull.
Namespace:
ceometric.ComputationalGeometryAssembly: ceometric.ComputationalGeometry (in ceometric.ComputationalGeometry.dll) Version: 2.4.0.0 (2.4.0.0)
Syntax
C# |
---|
public Edge Diameter() |
Visual Basic (Declaration) |
---|
Public Function Diameter As Edge |
Visual C++ |
---|
public: Edge^ Diameter() |
Return Value
Returns the an edge connecting the two farthest points of a 2d convex hull.Remarks
The diameter of a 2d convex hull is defined as the maximum distance between two points
in the xy-plane. The computation takes O(n) time with n being the number of vertices of
the 2d convex hull.