public class CGAlgorithms3D
extends java.lang.Object
Modifier and Type | Method | 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 © 2018. All rights reserved.