Plane
- class Plane3(c)[source]
Bases:
objectCreate a plane object from linear coefficients
- Parameters:
c (
Union[List[float],Tuple[float,float,float,float],ndarray[Tuple[ResizeEventType[4]],dtype[floating]]]) – Plane coefficients- Returns:
a Plane object
- Return type:
Plane
Planes are represented by the 4-vector \([a, b, c, d]\) which describes the plane \(\pi: ax + by + cz + d=0\).
- classmethod LinePoint(l, p)[source]
Create a plane object from a line and point
- Parameters:
- Returns:
a Plane object
- Return type:
Self- Seealso:
- classmethod PointNormal(p, n)[source]
Create a plane object from point and normal
- Parameters:
- Returns:
a Plane object
- Return type:
Self- Seealso:
- classmethod ThreePoints(p)[source]
Create a plane object from three points
- Parameters:
p (
ndarray[Tuple[ResizeEventType[3],ResizeEventType[3]],dtype[floating]]) – Three points in the plane- Returns:
a Plane object
- Return type:
Self
The points in
pare arranged as columns.- Seealso:
- classmethod TwoLines(l1, l2)[source]
Create a plane object from two line
Warning
This algorithm fails if the lines are parallel.
- Seealso:
- static intersection(pi1, pi2, pi3)[source]
Intersection point of three planes
- Parameters:
- Returns:
coordinates of intersection point
- Return type:
This static method computes the intersection point of the three planes given as arguments.
Warning
This algorithm fails if the planes do not intersect, or intersect along a line.
- Seealso:
Plane()
- plot(bounds=None, ax=None, **kwargs)[source]
Plot plane
- Parameters:
The
boundsof the 3D plot volume is [xmin, xmax, ymin, ymax, zmin, zmax] and a 3D plot is created if not already existing. Ifboundsis not provided it is taken from current 3D axes.The plane is drawn using
plot_surface.- Seealso:
axes_logic()
- property d: float
Plane offset
- Returns:
Offset of the plane
- Return type:
float
For a plane \(\pi: ax + by + cz + d=0\) this is the scalar \(d\).
- Seealso: