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
p0
CoordinateThe first point
p1
CoordinateThe 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
p
CoordinateThe point
A
CoordinateThe start point of the segment
B
CoordinateThe 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
A
CoordinateThe start point of the first segment
B
CoordinateThe end point of the first segment
C
CoordinateThe start point of the second segment
D
CoordinateThe end point of the second segment
Returns
- double
The distance between the segments