Constructs a line from two points.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | pt1(3) |
The first point. This point will act as the initial point along the line such that in the equation of the line . |
||
| real(kind=real64), | intent(in) | :: | pt2(3) |
The second point. |
The resulting line.
Constructs a line from the intersection of two planes.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plane), | intent(in) | :: | p1 |
The first plane. |
||
| class(plane), | intent(in) | :: | p2 |
The second plane. |
The resulting line. NaN's are returned in the event that the two planes are parallel.
Constructs the line that best fits the supplied set of points in a least-squares sense.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in), | dimension(:,:) | :: | pts |
An N-by-3 matrix where N is at least 2, but typically much larger. |
The resulting line.