User Manual, Developers Guide and API Documentation

wns::geometry::LineSegment Class Reference

#include <geometry/LineSegment.hpp>

Inheritance diagram for wns::geometry::LineSegment:

Inheritance graph
[legend]
Collaboration diagram for wns::geometry::LineSegment:

Collaboration graph
[legend]

List of all members.

Public Member Functions

bool contains (const Point &point) const
virtual unsigned int countBorderIntersections (const LineSegment &line) const
double crossProduct (const Point &x) const
const PointgetA () const
const PointgetB () const
bool intersects (const LineSegment &that) const
bool leftOf (const Point &point) const
 LineSegment (const wns::pyconfig::View &config)
 LineSegment (const Point &a, const Vector &db)
 LineSegment (const Point &a, const Point &b)
 LineSegment ()
bool rightOf (const Point &point) const
bool straddles (const LineSegment &other) const
bool touches (const LineSegment &other) const
virtual ~LineSegment ()


Detailed Description

Definition at line 38 of file LineSegment.hpp.


Constructor & Destructor Documentation

LineSegment::LineSegment (  ) 

Definition at line 34 of file LineSegment.cpp.

LineSegment::LineSegment ( const Point a,
const Point b 
)

Definition at line 38 of file LineSegment.cpp.

LineSegment::LineSegment ( const Point a,
const Vector db 
)

Definition at line 44 of file LineSegment.cpp.

LineSegment::LineSegment ( const wns::pyconfig::View config  ) 

Definition at line 50 of file LineSegment.cpp.

LineSegment::~LineSegment (  )  [virtual]

Definition at line 58 of file LineSegment.cpp.


Member Function Documentation

bool LineSegment::contains ( const Point point  )  const [virtual]

Implements wns::geometry::Shape2D.

Definition at line 63 of file LineSegment.cpp.

unsigned int LineSegment::countBorderIntersections ( const LineSegment line  )  const [virtual]

Definition at line 103 of file LineSegment.cpp.

double LineSegment::crossProduct ( const Point x  )  const

Definition at line 109 of file LineSegment.cpp.

const Point& wns::geometry::LineSegment::getA (  )  const [inline]

Definition at line 49 of file LineSegment.hpp.

const Point& wns::geometry::LineSegment::getB (  )  const [inline]

Definition at line 52 of file LineSegment.hpp.

bool LineSegment::intersects ( const LineSegment that  )  const

Definition at line 93 of file LineSegment.cpp.

bool LineSegment::leftOf ( const Point point  )  const

Definition at line 71 of file LineSegment.cpp.

bool LineSegment::rightOf ( const Point point  )  const

Definition at line 77 of file LineSegment.cpp.

bool LineSegment::straddles ( const LineSegment other  )  const

Definition at line 115 of file LineSegment.cpp.

bool LineSegment::touches ( const LineSegment other  )  const

Definition at line 84 of file LineSegment.cpp.


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

Generated on Sat May 26 03:32:54 2012 for openWNS by  doxygen 1.5.5