|
Wt
4.10.0
|
Utility class that defines a single line. More...
#include <Wt/WLineF.h>
Public Member Functions | |
| WLineF () | |
| Default constructor. | |
| WLineF (const WPointF &p1, const WPointF &p2) | |
| Construct a line connecting two points. | |
| WLineF (double x1, double y1, double x2, double y2) | |
| Construct a line connecting two points. | |
| double | x1 () const |
| Returns the X coordinate of the first point. | |
| double | y1 () const |
| Returns the Y coordinate of the first point. | |
| double | x2 () const |
| Returns the X coordinate of the second point. | |
| double | y2 () const |
| Returns the Y coordinate of the second point. | |
| WPointF | p1 () const |
| Returns the first point. | |
| WPointF | p2 () const |
| Returns the second point. | |
Utility class that defines a single line.
| Wt::WLineF::WLineF | ( | ) |
Default constructor.
Constructs a line from (x1=0,y1=0) to (x2=0,y2=0).
Construct a line connecting two points.
Constructs a line from p1 to p2.
| Wt::WLineF::WLineF | ( | double | x1, |
| double | y1, | ||
| double | x2, | ||
| double | y2 | ||
| ) |
Construct a line connecting two points.
Constructs a line from (x1,y1) to (x2,y2).