libmove3d-planners
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
CircleForm Class Reference
Inheritance diagram for CircleForm:
GeometricForm

Public Member Functions

 CircleForm (p3d_point c, double r, p3d_vector3 norm)
 
bool isPointInForm (p3d_point p)
 
double distHToPoint (p3d_point p)
 
double getDistanceFromPoint (p3d_point p)
 
double getPlannarDistanceFromPoint (p3d_point p)
 
p3d_point getRandomPointInForm ()
 
std::vector< p3d_point > getFormGrid (double sampleRate)
 
GeometricFormgetTransformedForm (p3d_matrix4 M)
 create a new form rotate by M compared to this one.
 
void draw ()
 draw the form
 
- Public Member Functions inherited from GeometricForm
p3d_point transformPoint (p3d_point a, p3d_matrix4 M)
 transformPoint More...
 
void transformVector (p3d_vector3 src, p3d_matrix4 M, p3d_vector3 res)
 transformVector: applies the transformation to the vector More...
 
void getNorm (p3d_vector3 v)
 

Additional Inherited Members

- Public Attributes inherited from GeometricForm
std::string type
 the type of the form
 
bool isSupport
 is the form a support or not
 
std::map< std::string,
GeometricForm * > 
supportAreas
 a map of internal geometric form
 
- Protected Attributes inherited from GeometricForm
p3d_vector3 _norm
 the form normal
 

Member Function Documentation

double CircleForm::distHToPoint ( p3d_point  p)
virtual
Returns
: return the distance between the form and p, in the direction of the norm TODO: for now it is just the z dist.

Implements GeometricForm.

double CircleForm::getDistanceFromPoint ( p3d_point  p)
virtual
Returns
: smallest dist between the form and p

Implements GeometricForm.

vector< p3d_point > CircleForm::getFormGrid ( double  sampleRate)
virtual
Returns
: create a grid inside the form and return its points

Implements GeometricForm.

double CircleForm::getPlannarDistanceFromPoint ( p3d_point  p)
virtual
Returns
: smallest distance between the form and p in 2D

Implements GeometricForm.

p3d_point CircleForm::getRandomPointInForm ( )
virtual
Returns
: a point from the form

Implements GeometricForm.

bool CircleForm::isPointInForm ( p3d_point  p)
virtual
Returns
: true if p is in the form

Implements GeometricForm.


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