|
INET Framework for OMNeT++/OMNEST
|
This class represents a 3 dimensional sphere shape. More...
#include <Sphere.h>
Public Member Functions | |
| Sphere (double radius) | |
| double | getRadius () const |
| void | setRadius (double radius) |
| 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... | |
Public Member Functions inherited from inet::ShapeBase | |
| ShapeBase () | |
| virtual | ~ShapeBase () |
Protected Attributes | |
| double | radius |
This class represents a 3 dimensional sphere shape.
|
inlineoverridevirtual |
Computes the 3 dimensional size of the shapes's bounding box.
Implements inet::ShapeBase.
|
overridevirtual |
Computes the intersection with the given line segment in the shape's coordinate system.
Implements inet::ShapeBase.
|
inline |
|
protected |
Referenced by computeIntersection().