CUGL
2.0
|
#include <cugl.h>
Public Member Functions | |
Line (const Point &p, const Point &q) | |
Line (const Point &p, const Vector &v) | |
void | draw () const |
Private Attributes | |
Point | s |
Point | f |
Friends | |
class | Plane |
Point | meet (const Line &k, const Plane &p) |
bool | operator== (const Line &x, const Line &y) |
bool | operator!= (const Line &x, const Line &y) |
std::ostream & | operator<< (std::ostream &os, const Line &k) |
An instance is a line defined by two Points. Lines are occasionally useful. For example, it is simple to display surface normals using this class. A Line is represented by the two Points which are its end-points.
void cugl::Line::draw | ( | ) | const |
Draw the line using glBegin(GL_LINE)
....
Find the point where this line meets the plane p.
|
friend |
Write a representation of the line to the output stream. The format is pt->pt where "\a pt" is the format used for points. If setw
is used to set the width, it is passed to the inserter for Point.
|
private |
|
private |