|
INET Framework for OMNeT++/OMNEST
|
This class represents a 3 dimensional shape with 6 pairwise parallel faces. More...
#include <Cuboid.h>
Public Member Functions | |
| Cuboid (const Coord &size) | |
| const Coord & | getSize () const |
| void | setSize (const Coord &size) |
| virtual Coord | computeBoundingBoxSize () const override |
| Computes the 3 dimensional size of the shapes's bounding box. More... | |
| virtual bool | computeIntersection (const LineSegment &lineSegment, Coord &intersection1, Coord &intersection2, Coord &normal1, Coord &normal2) const override |
| Computes the intersection with the given line segment in the shape's coordinate system. More... | |
| virtual void | computeVisibleFaces (std::vector< std::vector< Coord >> &faces, const RotationMatrix &rotation, const RotationMatrix &viewRotation) const |
Public Member Functions inherited from inet::ShapeBase | |
| ShapeBase () | |
| virtual | ~ShapeBase () |
Protected Member Functions | |
| bool | isInsideX (const Coord &point) const |
| bool | isInsideY (const Coord &point) const |
| bool | isInsideZ (const Coord &point) const |
Protected Attributes | |
| Coord | size |
This class represents a 3 dimensional shape with 6 pairwise parallel faces.
|
inlineoverridevirtual |
|
overridevirtual |
Computes the intersection with the given line segment in the shape's coordinate system.
Implements inet::ShapeBase.
Referenced by inet::visualizer::VisualizerBase::getContactPosition(), and inet::BvhTree::intersectWithLineSegment().
|
virtual |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
protected |
Referenced by computeIntersection(), and computeVisibleFaces().