Point Derived Type

type, public :: Point

Point

Represents the single point of a line segment.

Description

Representation of a point in the 2D space with its coordinates. It is used to represent either the intersection of two lines segments or the self-intersection of a single line. In the first case the i and j attributes represent the indices of the line segments that intersected. In the second case both represent the index of the line segment that self-intersected.

Examples



Components

Type Visibility Attributes Name Initial
integer, public :: i

Index of the first line segment

integer, public :: j

Index of the second line segment

real(kind=pr), public :: x

X coordinate

real(kind=pr), public :: y

Y coordinate