Class HalfPlane

Class Documentation

class HalfPlane

A half plane is defined through a point and a normal.

Public Types

typedef std::vector<HalfPlane, Eigen::aligned_allocator<HalfPlane>> Vector

Public Functions

HalfPlane(const Eigen::Vector3d &point, const Eigen::Vector3d &normal)
HalfPlane(const Eigen::Vector3d &a, const Eigen::Vector3d &b, const Eigen::Vector3d &c)

Define the half plane from 3 counter-clockwise points (seen from above).

Public Members

Eigen::Vector3d point
Eigen::Vector3d normal

Public Static Functions

static HalfPlane::Vector createBoundingBox(const Eigen::Vector3d &point, const Eigen::Vector3d &bounding_box_size)

Create 6 half planes that form a box with inward-facing normals.

point = center of the box, bounding_box_size = x, y, z edge length.