holypipette.geometry.planes module

Calculation related to planes (intersections, etc)

class holypipette.geometry.planes.Plane(vector, offset)[source]

Bases: object

A plane is defined by its normal vector n and an offset a, according to: n.x + a = 0

static from_points(x1, x2, x3)[source]

Returns a plane determined by three points

parallel_plane(x)[source]

Returns a parallel plane passing by x

project(x, u=None)[source]

Projects point x to the plane along vector u. If u is not specified, default is the normal vector, i.e., orthogonal projection

signed_distance(x, u)[source]

Signed distance of x from the plane along vector u. That is, returns k such that x + k.u is in the plane.