Class CGAlgorithms3D
- Namespace
- NetTopologySuite.Algorithm
- Assembly
- NetTopologySuite.dll
Basic computational geometry algorithms for geometry and coordinates defined in 3-dimensional Cartesian space.
public static class CGAlgorithms3D
- Inheritance
-
CGAlgorithms3D
- Inherited Members
Methods
Distance(Coordinate, Coordinate)
Computes the distance between the points p0 and
p1 in 3D space
public static double Distance(Coordinate p0, Coordinate p1)
Parameters
p0CoordinateThe first point
p1CoordinateThe second point
Returns
- double
The distance between the two points
DistancePointSegment(Coordinate, Coordinate, Coordinate)
Computes the distance between the point p and the
segment from A to B in 3D space
public static double DistancePointSegment(Coordinate p, Coordinate A, Coordinate B)
Parameters
pCoordinateThe point
ACoordinateThe start point of the segment
BCoordinateThe end point of the segment
Returns
DistanceSegmentSegment(Coordinate, Coordinate, Coordinate, Coordinate)
Computes the distance between two 3D segments.
public static double DistanceSegmentSegment(Coordinate A, Coordinate B, Coordinate C, Coordinate D)
Parameters
ACoordinateThe start point of the first segment
BCoordinateThe end point of the first segment
CCoordinateThe start point of the second segment
DCoordinateThe end point of the second segment
Returns
- double
The distance between the segments