w2img::TruthLine Class Reference

List of all members.

Detailed Description

An edge of a TruthPolygon.

See also:
TruthPolygon
Author:
Lakshman
Version:
Id
w2img_TruthPolygon.h,v 1.9 2009/06/02 20:17:58 lakshman Exp


Public Member Functions

 TruthLine ()
 For STL use only.
 TruthLine (float _x0, float _y0, float _x1, float _y1)
 The end points of the line in any cartesian coordinate system.
bool get_x (float y, float *x) const
 find intersection point for this y
bool get_y (float x, float *y) const
 find intersection point for this y

Static Public Member Functions

static TruthLine connect (const TruthLine &from, const TruthLine &to)
 Create a line that connects the end point of from to the begin point of to.

Friends

class TruthPolygon


Constructor & Destructor Documentation

w2img::TruthLine::TruthLine (  )  [inline]

For STL use only.

w2img::TruthLine::TruthLine ( float  _x0,
float  _y0,
float  _x1,
float  _y1 
) [inline]

The end points of the line in any cartesian coordinate system.


Member Function Documentation

static TruthLine w2img::TruthLine::connect ( const TruthLine from,
const TruthLine to 
) [static]

Create a line that connects the end point of from to the begin point of to.

bool w2img::TruthLine::get_x ( float  y,
float *  x 
) const [inline]

find intersection point for this y

bool w2img::TruthLine::get_y ( float  x,
float *  y 
) const [inline]

find intersection point for this y


Friends And Related Function Documentation

friend class TruthPolygon [friend]


Generated on Fri May 4 13:40:24 2012 for WDSS-IIw2algs by  doxygen 1.4.7