#include <Line.h>
Public Member Functions | |
float | distFrom (Point p) const |
void | draw () const |
Point | eval (float t) const |
Vector | getDirection () const |
Point | getPoint () const |
Point | intersect (const Line &o) const |
Point | intersect (const Line &o, float &t, float &s) const |
Line () | |
Line (Point p, float theta) | |
Line (Point p1, Point p2) | |
Line (Point p1, Point p2, bool setLen) | |
bool | operator< (const Line &o) const |
std::ostream & | output (std::ostream &out) const |
bool | sameAs (const Line &o, double e=EPSILON) const |
void | translate (const Point &trans) |
Static Public Member Functions | |
static Line | getBestFit (const std::set< Point > &pts) |
static Line | getBestFit (const std::vector< Point > &pts) |
static Line | getBestFit (const double *xs, const double *ys, uint size) |
static bool | test (std::ostream &out) |
Private Attributes | |
Vector | d |
Point | p |
geom::Line::Line | ( | ) |
geom::Line::Line | ( | Point | p, |
float | theta | ||
) |
geom::Line::Line | ( | Point | p1, |
Point | p2 | ||
) |
float geom::Line::distFrom | ( | Point | p | ) | const |
void geom::Line::draw | ( | ) | const |
Point geom::Line::eval | ( | float | t | ) | const [virtual] |
Implements geom::Path.
static Line geom::Line::getBestFit | ( | const std::set< Point > & | pts | ) | [static] |
static Line geom::Line::getBestFit | ( | const std::vector< Point > & | pts | ) | [static] |
static Line geom::Line::getBestFit | ( | const double * | xs, |
const double * | ys, | ||
uint | size | ||
) | [static] |
Vector geom::Line::getDirection | ( | ) | const |
Point geom::Line::getPoint | ( | ) | const |
Point geom::Line::intersect | ( | const Line & | o | ) | const |
Point geom::Line::intersect | ( | const Line & | o, |
float & | t, | ||
float & | s | ||
) | const |
ostream & geom::Line::output | ( | std::ostream & | out | ) | const |
bool geom::Line::sameAs | ( | const Line & | o, |
double | e = EPSILON |
||
) | const |
static bool geom::Line::test | ( | std::ostream & | out | ) | [static] |
void geom::Line::translate | ( | const Point & | trans | ) |
Vector geom::Line::d [private] |
Point geom::Line::p [private] |