Class CGAlgorithms3D

Hierarchy: Object , CGAlgorithms3D
public class CGAlgorithms3D
Basic computational geometry algorithms for geometry and coordinates defined in 3-dimensional Cartesian space.
Authors:
mdavis
public static double distance(Coordinate p0, Coordinate p1)
public static double distancePointSegment(Coordinate p, Coordinate A, Coordinate B)
public static double distanceSegmentSegment(Coordinate A, Coordinate B, Coordinate C, Coordinate D)
Computes the distance between two 3D segments.
Parameters:
A - A the start point of the first segment
B - B the end point of the first segment
C - C the start point of the second segment
D - D the end point of the second segment
Returns:
the distance between the segments