Class CGAlgorithms3D


  • public class CGAlgorithms3D
    extends java.lang.Object
    Basic computational geometry algorithms for geometry and coordinates defined in 3-dimensional Cartesian space.
    Author:
    mdavis
    • Method Detail

      • distanceSegmentSegment

        public static double distanceSegmentSegment​(Coordinate A,
                                                    Coordinate B,
                                                    Coordinate C,
                                                    Coordinate D)
        Computes the distance between two 3D segments.
        Parameters:
        A - the start point of the first segment
        B - the end point of the first segment
        C - the start point of the second segment
        D - the end point of the second segment
        Returns:
        the distance between the segments