c-—d /| /| a-—b h |/g |/ e-—f b and c should be opposite
More...
#include <parallelepipedForm.hpp>
|
| ParallelepipedForm (p3d_point a, p3d_point b, p3d_point c, p3d_point d, p3d_point e, p3d_point f, p3d_point g, p3d_point h) |
|
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) |
|
GeometricForm * | getTransformedForm (p3d_matrix4 M) |
| create a new form rotate by M compared to this one.
|
|
void | draw () |
| draw the form
|
|
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) |
|
c-—d /| /| a-—b h |/g |/ e-—f b and c should be opposite
double ParallelepipedForm::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 ParallelepipedForm::getDistanceFromPoint |
( |
p3d_point |
p | ) |
|
|
virtual |
- Returns
- : smallest dist between the form and p
Implements GeometricForm.
vector< p3d_point > ParallelepipedForm::getFormGrid |
( |
double |
sampleRate | ) |
|
|
virtual |
- Returns
- : create a grid inside the form and return its points
Implements GeometricForm.
double ParallelepipedForm::getPlannarDistanceFromPoint |
( |
p3d_point |
p | ) |
|
|
virtual |
- Returns
- : smallest distance between the form and p in 2D
Implements GeometricForm.
p3d_point ParallelepipedForm::getRandomPointInForm |
( |
| ) |
|
|
virtual |
bool ParallelepipedForm::isPointInForm |
( |
p3d_point |
p | ) |
|
|
virtual |
The documentation for this class was generated from the following files: