Mantid
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
Mantid::Geometry::PolygonEdge Class Reference

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::V2Ddirection () const
 Return the direction. More...
 
const Kernel::V2Dend () 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::V2Dstart () 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...
 

Detailed Description

PolygonEdge Defines a directed edge between two points on a polygon.

Author
Martyn Gigg
Date
2011-07-08

Definition at line 23 of file PolygonEdge.h.

Member Enumeration Documentation

◆ Orientation

Defines the orientation with respect to another edge.

Enumerator
Collinear 

Edges lie on the same line.

Parallel 

Edges point in the same direction.

Skew 

Edges are at an angle to each other.

SkewCross 

Edges are at an angle and intersect.

SkewNoCross 

Edges are at an angle and do not intersect.

Definition at line 26 of file PolygonEdge.h.

Constructor & Destructor Documentation

◆ PolygonEdge() [1/2]

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.

◆ PolygonEdge() [2/2]

Mantid::Geometry::PolygonEdge::PolygonEdge ( )
private

Default constructor.

Member Function Documentation

◆ direction()

const Kernel::V2D & Mantid::Geometry::PolygonEdge::direction ( ) const
inline

◆ end()

const Kernel::V2D & Mantid::Geometry::PolygonEdge::end ( ) const
inline

◆ point()

Kernel::V2D Mantid::Geometry::PolygonEdge::point ( const double  fraction) const

Create a point a given fraction along this edge.

Parameters
fraction:: The fraction of the current edge
Returns
A point on the edge

Definition at line 36 of file PolygonEdge.cpp.

References m_dir, and start().

Referenced by Mantid::Geometry::crossingPoint().

◆ start()

const Kernel::V2D & Mantid::Geometry::PolygonEdge::start ( ) const
inline

Member Data Documentation

◆ m_dir

const Kernel::V2D Mantid::Geometry::PolygonEdge::m_dir
private

Direction vector.

Definition at line 54 of file PolygonEdge.h.

Referenced by point().

◆ m_end

const Kernel::V2D Mantid::Geometry::PolygonEdge::m_end
private

Destination point.

Definition at line 52 of file PolygonEdge.h.

◆ m_start

const Kernel::V2D Mantid::Geometry::PolygonEdge::m_start
private

Origin point.

Definition at line 50 of file PolygonEdge.h.


The documentation for this class was generated from the following files: