Package org.meteoinfo.jts.algorithm
Class CGAlgorithms3D
- java.lang.Object
-
- org.meteoinfo.jts.algorithm.CGAlgorithms3D
-
public class CGAlgorithms3D extends java.lang.ObjectBasic computational geometry algorithms for geometry and coordinates defined in 3-dimensional Cartesian space.
-
-
Constructor Summary
Constructors Constructor Description CGAlgorithms3D()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doubledistance(Coordinate p0, Coordinate p1)static doubledistancePointSegment(Coordinate p, Coordinate A, Coordinate B)static doubledistanceSegmentSegment(Coordinate A, Coordinate B, Coordinate C, Coordinate D)Computes the distance between two 3D segments.
-
-
-
Method Detail
-
distance
public static double distance(Coordinate p0, Coordinate p1)
-
distancePointSegment
public static double distancePointSegment(Coordinate p, Coordinate A, Coordinate B)
-
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 segmentB- the end point of the first segmentC- the start point of the second segmentD- the end point of the second segment- Returns:
- the distance between the segments
-
-