class for straight lines
More...
#include <line.h>
|
| 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...
|
|
ami::line::line |
( |
double |
xx, |
|
|
double |
yy, |
|
|
double |
zz |
|
) |
| |
|
inline |
CONSTRUCTOR TO INITIALIZE THE LINE
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:
- sf_source_reviewed/ami_primitives/line.h