Table of Contents

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 Coordinate

The first point

p1 Coordinate

The 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 Coordinate

The point

A Coordinate

The start point of the segment

B Coordinate

The end point of the segment

Returns

double

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 Coordinate

The start point of the first segment

B Coordinate

The end point of the first segment

C Coordinate

The start point of the second segment

D Coordinate

The end point of the second segment

Returns

double

The distance between the segments