Constructs a plane from 3 points. The 3 points must not be colinear.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | pt1(3) |
The first point. |
||
| real(kind=real64), | intent(in) | :: | pt2(3) |
The second point. |
||
| real(kind=real64), | intent(in) | :: | pt3(3) |
The third point. |
The resulting plane.
Constructs a plane from a point which lies on the plane, and a unit vector normal to the plane.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in) | :: | pt(3) |
The point that lies on the plane. |
||
| real(kind=real64), | intent(in) | :: | nrm(3) |
The normal unit vector. |
The resulting plane.
Constructs the plane that best fits a cloud of points in a least-squares sense.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=real64), | intent(in), | dimension(:,:) | :: | pts |
The N-by-3 matrix containing the N points to fit. N must be at least 3, but is typically much larger. |
The resulting plane.