mrdja.geometry.get_plane_from_list_of_three_points

mrdja.geometry.get_plane_from_list_of_three_points(points: List[List[float]]) ndarray | None[source]

Get plane in form Ax + By + Cz + D = 0 from list of three points.

Parameters:

points (List[List[float]]) – Points.

Returns:

Plane.

Return type:

Union[np.ndarray, None]

Example:

>>> import coreransac
>>> points = [[0, 0, 0], [1, 0, 0], [0, 1, 0]]
>>> plane = customransac.get_plane_from_points(points)
>>> plane
array([0, 0, 1, 0])