Public Member Functions | Static Public Member Functions | Private Attributes
geom::Line Class Reference

#include <Line.h>

Inheritance diagram for geom::Line:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Definition at line 52 of file Line.h.


Constructor & Destructor Documentation

Definition at line 48 of file Line.cpp.

geom::Line::Line ( Point  p,
float  theta 
)

Definition at line 56 of file Line.cpp.

geom::Line::Line ( Point  p1,
Point  p2 
)

Definition at line 49 of file Line.cpp.

geom::Line::Line ( Point  p1,
Point  p2,
bool  setLen 
)

Definition at line 52 of file Line.cpp.


Member Function Documentation

float geom::Line::distFrom ( Point  p) const

Definition at line 89 of file Line.cpp.

void geom::Line::draw ( ) const
Point geom::Line::eval ( float  t) const [virtual]

Implements geom::Path.

Definition at line 69 of file Line.cpp.

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]

Definition at line 61 of file Line.cpp.

Definition at line 65 of file Line.cpp.

Point geom::Line::intersect ( const Line o) const

Definition at line 73 of file Line.cpp.

Point geom::Line::intersect ( const Line o,
float &  t,
float &  s 
) const

Definition at line 78 of file Line.cpp.

bool geom::Line::operator< ( const Line o) const

Definition at line 101 of file Line.cpp.

ostream & geom::Line::output ( std::ostream &  out) const

Definition at line 112 of file Line.cpp.

bool geom::Line::sameAs ( const Line o,
double  e = EPSILON 
) const

Definition at line 95 of file Line.cpp.

static bool geom::Line::test ( std::ostream &  out) [static]
void geom::Line::translate ( const Point trans)

Definition at line 108 of file Line.cpp.


Member Data Documentation

Vector geom::Line::d [private]

Definition at line 55 of file Line.h.

Point geom::Line::p [private]

Definition at line 54 of file Line.h.


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


explore_hrl
Author(s): Travis Deyle
autogenerated on Wed Nov 27 2013 11:48:01