Lens distortion correction division model 1p
 All Classes Files Functions Variables
ami::line Class Reference

class for straight lines More...

#include <line.h>

Public Member Functions

 line (double xx, double yy, double zz)
 
 line (const ami::point2d< double > &u, const ami::point2d< double > &v)
 
const double & get_a () const
 
double & get_a ()
 Get coefficient "a". More...
 
const double & get_b () const
 
double & get_b ()
 Get coefficient "b". More...
 
const double & get_c () const
 
double & get_c ()
 Get coefficient "c". More...
 
void get_abc (double &a2, double &b2, double &c2)
 Get the three coefficients "a,b,c". More...
 
void get_abc (double &a2, double &b2, double &c2) const
 
void set_a (double a2)
 Set coefficient "a". More...
 
void set_b (double b2)
 Set coefficient "b". More...
 
void set_c (double c2)
 Set coefficient "c". More...
 
void set_abc (double a2, double b2, double c2)
 Set the three coefficients "a,b,c". More...
 
double distance (const point2d< double > &p) const
 Calculates the distance between a point and the line. More...
 
double evaluation (const point2d< double > &p) const
 Evaluates a point with the line equation. More...
 

Friends

point2d< double > line_intersection (const line &l1, const line &l2)
 

Detailed Description

class for straight lines

Constructor & Destructor Documentation

ami::line::line ( double  xx,
double  yy,
double  zz 
)
inline

CONSTRUCTOR TO INITIALIZE THE LINE

Member Function Documentation

double ami::line::distance ( const point2d< double > &  p) const
inline

Calculates the distance between a point and the line.

Author
Luis Alvarez
double ami::line::evaluation ( const point2d< double > &  p) const
inline

Evaluates a point with the line equation.

Author
Luis Alvarez
const double & ami::line::get_a ( )
inline

Get coefficient "a".

Author
Luis Alvarez
ami::line::get_abc ( double &  a2,
double &  b2,
double &  c2 
)
inline

Get the three coefficients "a,b,c".

Author
Luis Alvarez
const double & ami::line::get_b ( )
inline

Get coefficient "b".

Author
Luis Alvarez
const double & ami::line::get_c ( )
inline

Get coefficient "c".

Author
Luis Alvarez
void ami::line::set_a ( double  a2)
inline

Set coefficient "a".

Author
Luis Alvarez
void ami::line::set_abc ( double  a2,
double  b2,
double  c2 
)
inline

Set the three coefficients "a,b,c".

Author
Luis Alvarez
void ami::line::set_b ( double  b2)
inline

Set coefficient "b".

Author
Luis Alvarez
void ami::line::set_c ( double  c2)
inline

Set coefficient "c".

Author
Luis Alvarez

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