|
INET Framework for OMNeT++/OMNEST
|
This class represents a 3 dimensional line segment between two points. More...
#include <LineSegment.h>
Public Member Functions | |
| LineSegment () | |
| LineSegment (const Coord &point1, const Coord &point2) | |
| const Coord & | getPoint1 () const |
| void | setPoint1 (const Coord &point1) |
| const Coord & | getPoint2 () const |
| void | setPoint2 (const Coord &point2) |
| double | length () const |
| virtual bool | isNil () const override |
| Returns true if this geometric object is the same as the unspecified singleton instance of this type. More... | |
| virtual bool | isUnspecified () const override |
| Returns true if this geometric object is not completely specified. More... | |
| bool | computeIntersection (const LineSegment &lineSegment, Coord &intersection1, Coord &intersection2) |
Public Member Functions inherited from inet::GeometricObjectBase | |
| GeometricObjectBase () | |
| virtual | ~GeometricObjectBase () |
Static Public Attributes | |
| static const LineSegment | NIL |
Protected Attributes | |
| Coord | point1 |
| Coord | point2 |
This class represents a 3 dimensional line segment between two points.
| inet::LineSegment::LineSegment | ( | ) |
| bool inet::LineSegment::computeIntersection | ( | const LineSegment & | lineSegment, |
| Coord & | intersection1, | ||
| Coord & | intersection2 | ||
| ) |
|
inline |
Referenced by inet::Sphere::computeIntersection(), inet::Cuboid::computeIntersection(), inet::Plane::computeIntersection(), inet::Polygon::computeIntersection(), inet::Prism::computeIntersection(), inet::Polyhedron::computeIntersection(), inet::BVHTree::intersectWithLineSegment(), inet::visualizer::isPointOnSegment(), and inet::SpatialGrid::LineSegmentIterator::LineSegmentIterator().
|
inline |
Referenced by inet::Sphere::computeIntersection(), inet::Cuboid::computeIntersection(), inet::Plane::computeIntersection(), inet::Polygon::computeIntersection(), inet::Prism::computeIntersection(), inet::Polyhedron::computeIntersection(), inet::BVHTree::intersectWithLineSegment(), inet::visualizer::isPointOnSegment(), and inet::SpatialGrid::LineSegmentIterator::LineSegmentIterator().
|
inlineoverridevirtual |
Returns true if this geometric object is the same as the unspecified singleton instance of this type.
Implements inet::GeometricObjectBase.
|
inlineoverridevirtual |
Returns true if this geometric object is not completely specified.
Implements inet::GeometricObjectBase.
|
inline |
|
inline |
|
inline |
|
static |
|
protected |
|
protected |