ESyS-Particle  4.0.1
Public Member Functions
LineSegment Class Reference

Class representing a line segment for intersection/fitting calculation in 2D. More...

#include <LineSegment.h>

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

List of all members.

Public Member Functions

 LineSegment (const Vec3 &, const Vec3 &)
virtual double sep (const Vec3 &)
virtual bool intersect (const Vec3 &, const Vec3 &)
Vec3 getP1 ()
Vec3 getP2 ()

Detailed Description

Class representing a line segment for intersection/fitting calculation in 2D.

Author:
Steffen Abe $Date$ $Revision$

Constructor & Destructor Documentation

LineSegment::LineSegment ( const Vec3 P0,
const Vec3 P1 
)

constructor

Parameters:
P01st end point
P12nd end point
Warning:
doesn't check P0!=P1

Member Function Documentation

bool LineSegment::intersect ( const Vec3 P1,
const Vec3 P2 
) [virtual]

returns if the connecting line between two points intersects the line segment

Parameters:
P11st point
P22nd point
double LineSegment::sep ( const Vec3 P) [virtual]

distance between a point and the line segment

Parameters:
Pthe position of the point

Reimplemented from Line.


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