HalfSpaceTilted: public feasst::Shape¶
A half space divides space by a plane (or line in 2D). This is a generalized implementation of HalfSpace. This plane is specified either by two points, or a normal vector and distance from origin. See https://mathworld.wolfram.com/Point-PlaneDistance.html
HalfSpaceTilted(const Position &normal, const double distance_from_origin)¶
normal: A vector that is normal to the surface and points inside the half space.
distance_from_origin: The signed nearest distance of the surface to the origin. Negative if inside.
HalfSpaceTilted(const Position &point0, const Position &point1)¶
Alternatively, construct the planar surface with two points. The first is on the plane, and the second is inside the half space. The vector connecting these two points is perpendicular to the plane.
Return the distance from the origin.