public class CGAlgorithms3D extends Object
Modifier and Type | Method and Description |
---|---|
static double |
distance(Coordinate p0,
Coordinate p1) |
static double |
distancePointSegment(Coordinate p,
Coordinate A,
Coordinate B) |
static double |
distanceSegmentSegment(Coordinate A,
Coordinate B,
Coordinate C,
Coordinate D)
Computes the distance between two 3D segments.
|
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)
A
- the start point of the first segmentB
- the end point of the first segmentC
- the start point of the second segmentD
- the end point of the second segmentCopyright © 2024. All rights reserved.