Defines a plane as .
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| real(kind=real64), | public | :: | a |
The x-component of the plane normal vector. |
|||
| real(kind=real64), | public | :: | b |
The y-component of the plane normal vector. |
|||
| real(kind=real64), | public | :: | c |
The z-component of the plane normal vector. |
|||
| real(kind=real64), | public | :: | d |
The offset from the origin. |
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.
Flips the normal vector of the plane.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(plane), | intent(inout) | :: | this |
The plane. |