|
CellModules
|
Represents a plane constraint. More...
Public Member Functions | |
| Plane (MecaCell::Vec _n=MecaCell::Vec(0, 1, 0), MecaCell::Vec _p=MecaCell::Vec(0, 0, 0), bool _sticky=false) | |
| Constructor for Plane. More... | |
| double | distanceToPoint (MecaCell::Vec c) |
| Computes the distance from a point to the plane. More... | |
Public Attributes | |
| MecaCell::Vec | n |
| MecaCell::Vec | p |
| bool | sticky |
Represents a plane constraint.
Definition at line 19 of file PhysicsConstraints.hpp.
|
inline |
Constructor for Plane.
| _n | Normal vector of the plane. |
| _p | Point on the plane. |
| _sticky | Indicates if the plane is sticky. |
Definition at line 32 of file PhysicsConstraints.hpp.
|
inline |
Computes the distance from a point to the plane.
| c | Point to compute the distance from. |
Definition at line 45 of file PhysicsConstraints.hpp.
| MecaCell::Vec PhysicsConstraints::Plane::n |
Normal vector of the plane
Definition at line 21 of file PhysicsConstraints.hpp.
| MecaCell::Vec PhysicsConstraints::Plane::p |
Point on the plane
Definition at line 22 of file PhysicsConstraints.hpp.
| bool PhysicsConstraints::Plane::sticky |
Indicates if the plane is sticky
Definition at line 23 of file PhysicsConstraints.hpp.