is_point_on_plane Function

public pure function is_point_on_plane(pt, pln, tol) result(rst)

Tests to see if a point lies on a plane.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in) :: pt(3)

The point.

class(plane), intent(in) :: pln

The plane.

real(kind=real64), intent(in), optional :: tol

The tolerance to use when testing. The default tolerance is 10x machine epsilon.

Return Value logical

Returns true if the point lies on the plane; else, false.


Contents