Search Results for

    Show / Hide Table of Contents

    Class HCoordinate

    Represents a homogeneous coordinate in a 2-D coordinate space. In NTS HCoordinates are used as a clean way of computing intersections between line segments.

    Inheritance
    object
    HCoordinate
    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 class HCoordinate

    Constructors

    | Edit this page View Source

    HCoordinate()

    Declaration
    public HCoordinate()
    | Edit this page View Source

    HCoordinate(HCoordinate, HCoordinate)

    Declaration
    public HCoordinate(HCoordinate p1, HCoordinate p2)
    Parameters
    Type Name Description
    HCoordinate p1
    HCoordinate p2
    | Edit this page View Source

    HCoordinate(Coordinate)

    Declaration
    public HCoordinate(Coordinate p)
    Parameters
    Type Name Description
    Coordinate p
    | Edit this page View Source

    HCoordinate(Coordinate, Coordinate)

    Constructs a homogeneous coordinate which is the intersection of the lines Coordinates. define by the homogeneous coordinates represented by two

    Declaration
    public HCoordinate(Coordinate p1, Coordinate p2)
    Parameters
    Type Name Description
    Coordinate p1

    A coordinate

    Coordinate p2

    A coordinate

    | Edit this page View Source

    HCoordinate(Coordinate, Coordinate, Coordinate, Coordinate)

    Creates an instance of this

    Declaration
    public HCoordinate(Coordinate p1, Coordinate p2, Coordinate q1, Coordinate q2)
    Parameters
    Type Name Description
    Coordinate p1
    Coordinate p2
    Coordinate q1
    Coordinate q2
    | Edit this page View Source

    HCoordinate(double, double, double)

    Declaration
    public HCoordinate(double x, double y, double w)
    Parameters
    Type Name Description
    double x
    double y
    double w

    Properties

    | Edit this page View Source

    Coordinate

    Declaration
    public Coordinate Coordinate { get; }
    Property Value
    Type Description
    Coordinate

    Methods

    | Edit this page View Source

    GetX()

    Declaration
    public double GetX()
    Returns
    Type Description
    double
    | Edit this page View Source

    GetY()

    Declaration
    public double GetY()
    Returns
    Type Description
    double
    | Edit this page View Source

    Intersection(Coordinate, Coordinate, Coordinate, Coordinate)

    Computes the (approximate) intersection point between two line segments using homogeneous coordinates.

    Declaration
    [Obsolete("Use Intersection.Compute(Coordinate, Coordinate, Coordinate, Coordinate)")]
    public static Coordinate Intersection(Coordinate p1, Coordinate p2, Coordinate q1, Coordinate q2)
    Parameters
    Type Name Description
    Coordinate p1

    1st Coordinate of 1st linesegment

    Coordinate p2

    2nd Coordinate of 1st linesegment

    Coordinate q1

    1st Coordinate of 2nd linesegment

    Coordinate q2

    2nd Coordinate of 2nd linesegment

    Returns
    Type Description
    Coordinate
    Remarks

    Note that this algorithm is not numerically stable; i.e. it can produce intersection points which lie outside the envelope of the line segments themselves. In order to increase the precision of the calculation input points should be normalized before passing them to this routine.

    | Edit this page View Source

    OldIntersection(Coordinate, Coordinate, Coordinate, Coordinate)

    Computes the (approximate) intersection point between two line segments using homogeneous coordinates. Note that this algorithm is not numerically stable; i.e. it can produce intersection points which lie outside the envelope of the line segments themselves. In order to increase the precision of the calculation input points should be normalized before passing them to this routine.

    Declaration
    public static Coordinate OldIntersection(Coordinate p1, Coordinate p2, Coordinate q1, Coordinate q2)
    Parameters
    Type Name Description
    Coordinate p1
    Coordinate p2
    Coordinate q1
    Coordinate q2
    Returns
    Type Description
    Coordinate
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX