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