#include <IMG_Line.h>
Public Methods | |
| IMG_Line (TInt32 xs=0,TInt32 ys=0,TInt32 xe=0,TInt32 ye=0) | |
| Constructs a line with the given values. More... | |
| IMG_Line (const IMG_Line &l) | |
| Copy constructor. More... | |
| virtual | ~IMG_Line () |
| Destructor. | |
| virtual float | getLength ()const |
| Access to line length. More... | |
| virtual void | set (TInt32 xs,TInt32 ys,TInt32 xe,TInt32 ye) |
| Sets all members of the line. More... | |
| virtual bool | isEmpty ()const |
| Returns whether this line is empty. More... | |
| virtual void | getPoint (float t,TInt32 &x,TInt32 &y)const |
| Returns point at given value for line parameter. More... | |
Public Attributes | |
| TInt32 | m_xs |
| Start point x-coordinate. | |
| TInt32 | m_ys |
| Start point y-coordinate. | |
| TInt32 | m_xe |
| End point x-coordinate. | |
| TInt32 | m_ye |
| End point y-coordinate. | |
Used for drawing lines in images.
|
|
Constructs a line with the given values.
|
|
|
Copy constructor.
|
|
|
Access to line length.
|
|
|
Returns point at given value for line parameter. Calculates the coordinates of a point on the line.
|
|
|
Returns whether this line is empty. Empty line are lines that have length==0.
|
|
|
Sets all members of the line.
|
1.2.4 written by Dimitri van Heesch,
© 1997-2000