|
Mantid
|
PolygonEdge Defines a directed edge between two points on a polygon. More...
#include <PolygonEdge.h>
Public Types | |
| enum | Orientation { Collinear , Parallel , Skew , SkewCross , SkewNoCross } |
| Defines the orientation with respect to another edge. More... | |
Public Member Functions | |
| const Kernel::V2D & | direction () const |
| Return the direction. More... | |
| const Kernel::V2D & | end () const |
| Access the end point. More... | |
| Kernel::V2D | point (const double fraction) const |
| Create a point a given fraction along this edge. More... | |
| PolygonEdge (const Kernel::V2D &start, const Kernel::V2D &end) | |
| Constructor with starting and ending points. More... | |
| const Kernel::V2D & | start () const |
| Access the start point. More... | |
Private Member Functions | |
| PolygonEdge () | |
| Default constructor. More... | |
Private Attributes | |
| const Kernel::V2D | m_dir |
| Direction vector. More... | |
| const Kernel::V2D | m_end |
| Destination point. More... | |
| const Kernel::V2D | m_start |
| Origin point. More... | |
PolygonEdge Defines a directed edge between two points on a polygon.
Definition at line 23 of file PolygonEdge.h.
Defines the orientation with respect to another edge.
Definition at line 26 of file PolygonEdge.h.
| Mantid::Geometry::PolygonEdge::PolygonEdge | ( | const Kernel::V2D & | start, |
| const Kernel::V2D & | end | ||
| ) |
Constructor with starting and ending points.
Contructor taking two points, start and end.
Definition at line 28 of file PolygonEdge.cpp.
|
private |
Default constructor.
|
inline |
Return the direction.
Definition at line 41 of file PolygonEdge.h.
Referenced by Mantid::Geometry::classify(), Mantid::Geometry::crossingPoint(), Mantid::Geometry::edgeAimsAt(), and Mantid::Geometry::orientation().
|
inline |
Access the end point.
Definition at line 39 of file PolygonEdge.h.
Referenced by Mantid::Geometry::classify(), Mantid::Geometry::crossingPoint(), Mantid::Geometry::intersection(), and Mantid::Geometry::orientation().
| Kernel::V2D Mantid::Geometry::PolygonEdge::point | ( | const double | fraction | ) | const |
Create a point a given fraction along this edge.
| fraction | :: The fraction of the current edge |
Definition at line 36 of file PolygonEdge.cpp.
References m_dir, and start().
Referenced by Mantid::Geometry::crossingPoint().
|
inline |
Access the start point.
Definition at line 37 of file PolygonEdge.h.
Referenced by Mantid::Geometry::classify(), Mantid::Geometry::crossingPoint(), Mantid::Geometry::intersection(), Mantid::Geometry::orientation(), and point().
|
private |
|
private |
Destination point.
Definition at line 52 of file PolygonEdge.h.
|
private |
Origin point.
Definition at line 50 of file PolygonEdge.h.