Moby
Public Member Functions | Public Attributes | List of all members
Moby::Plane Class Reference

Defines a plane using the equation <n, x> = d. More...

#include <Plane.h>

Public Member Functions

 Plane (double nx, double ny, double nz, double d)
 
 Plane (const Triangle &t)
 
 Plane (const Ravelin::Vector3d &n, double d)
 
 Plane (const Ravelin::Vector3d &normal, const Point3d &point)
 
 Plane (const Plane &p)
 
void operator= (const Plane &p)
 
double calc_signed_distance (const Point3d &p) const
 
bool on_plane (const Point3d &p)
 
bool operator== (const Plane &p) const
 
bool operator< (const Plane &p) const
 
boost::shared_ptr< const
Ravelin::Pose3d > 
get_pose () const
 
Point3d project (const Point3d &p) const
 Projects a point onto the plane.
 
Ravelin::Origin2d to_2D (const Point3d &p) const
 Transforms a point to 2D.
 
Plane transform (const Ravelin::Transform3d &T) const
 Transforms a plane.
 
Plane operator- () const
 Assuming this plane represents a half-space, negates the half-space.
 
const Ravelin::Vector3d & get_normal () const
 Gets the outward pointing normal to the plane.
 
void set_normal (const Ravelin::Vector3d &n)
 Sets the outward pointing normal to the plane.
 

Public Attributes

double offset
 The plane offset such that the plane equation is given by <n, x> = offset.
 

Detailed Description

Defines a plane using the equation <n, x> = d.


The documentation for this class was generated from the following file: