Search Results for

    Show / Hide Table of Contents

    Class CGAlgorithms3D

    Basic computational geometry algorithms for geometry and coordinates defined in 3-dimensional Cartesian space.

    Inheritance
    object
    CGAlgorithms3D
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NetTopologySuite.Algorithm
    Assembly: NetTopologySuite.dll
    Syntax
    public static class CGAlgorithms3D

    Methods

    | Edit this page View Source

    Distance(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

    | Edit this page View Source

    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
    | Edit this page View Source

    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

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX