|
ESyS-Particle
4.0.1
|
Class representing a line segment for intersection/fitting calculation in 2D. More...
#include <LineSegment.h>


Public Member Functions | |
| LineSegment (const Vec3 &, const Vec3 &) | |
| virtual double | sep (const Vec3 &) |
| virtual bool | intersect (const Vec3 &, const Vec3 &) |
| Vec3 | getP1 () |
| Vec3 | getP2 () |
Class representing a line segment for intersection/fitting calculation in 2D.
| LineSegment::LineSegment | ( | const Vec3 & | P0, |
| const Vec3 & | P1 | ||
| ) |
constructor
| P0 | 1st end point |
| P1 | 2nd end point |
| bool LineSegment::intersect | ( | const Vec3 & | P1, |
| const Vec3 & | P2 | ||
| ) | [virtual] |
returns if the connecting line between two points intersects the line segment
| P1 | 1st point |
| P2 | 2nd point |
| double LineSegment::sep | ( | const Vec3 & | P | ) | [virtual] |
distance between a point and the line segment
| P | the position of the point |
Reimplemented from Line.
1.7.6.1