Class CGAlgorithms3D
Basic computational geometry algorithms for geometry and coordinates defined in 3-dimensional Cartesian space.
Inherited Members
Namespace: NetTopologySuite.Algorithm
Assembly: NetTopologySuite.dll
Syntax
public static class CGAlgorithms3D
Methods
| Edit this page View SourceDistance(Coordinate, Coordinate)
Computes the distance between the points p0 and
p1 in 3D space
Declaration
public static double Distance(Coordinate p0, Coordinate p1)
Parameters
| Type | Name | Description |
|---|---|---|
| Coordinate | p0 | The first point |
| Coordinate | p1 | The second point |
Returns
| Type | Description |
|---|---|
| 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
Declaration
public static double DistancePointSegment(Coordinate p, Coordinate A, Coordinate B)
Parameters
| Type | Name | Description |
|---|---|---|
| Coordinate | p | The point |
| Coordinate | A | The start point of the segment |
| Coordinate | B | The end point of the segment |
Returns
| Type | Description |
|---|---|
| double |
DistanceSegmentSegment(Coordinate, Coordinate, Coordinate, Coordinate)
Computes the distance between two 3D segments.
Declaration
public static double DistanceSegmentSegment(Coordinate A, Coordinate B, Coordinate C, Coordinate D)
Parameters
| Type | Name | Description |
|---|---|---|
| Coordinate | A | The start point of the first segment |
| Coordinate | B | The end point of the first segment |
| Coordinate | C | The start point of the second segment |
| Coordinate | D | The end point of the second segment |
Returns
| Type | Description |
|---|---|
| double | The distance between the segments |