Wt  3.7.1
Public Member Functions | List of all members
Wt::WLineF Class Reference

Utility class that defines a single line. More...

#include <Wt/WLineF>

Public Member Functions

 WLineF ()
 Default constructor. More...
 
 WLineF (const WPointF &p1, const WPointF &p2)
 Construct a line connecting two points. More...
 
 WLineF (double x1, double y1, double x2, double y2)
 Construct a line connecting two points. More...
 
double x1 () const
 Returns the X coordinate of the first point. More...
 
double y1 () const
 Returns the Y coordinate of the first point. More...
 
double x2 () const
 Returns the X coordinate of the second point. More...
 
double y2 () const
 Returns the Y coordinate of the second point. More...
 
WPointF p1 () const
 Returns the first point. More...
 
WPointF p2 () const
 Returns the second point. More...
 

Detailed Description

Utility class that defines a single line.

Constructor & Destructor Documentation

◆ WLineF() [1/3]

Wt::WLineF::WLineF ( )

Default constructor.

Constructs a line from (x1=0,y1=0) to (x2=0,y2=0).

◆ WLineF() [2/3]

Wt::WLineF::WLineF ( const WPointF p1,
const WPointF p2 
)

Construct a line connecting two points.

Constructs a line from p1 to p2.

◆ WLineF() [3/3]

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).

Member Function Documentation

◆ p1()

WPointF Wt::WLineF::p1 ( ) const

Returns the first point.

See also
x1(), y1()

◆ p2()

WPointF Wt::WLineF::p2 ( ) const

Returns the second point.

See also
x2(), y2()

◆ x1()

double Wt::WLineF::x1 ( ) const

Returns the X coordinate of the first point.

See also
y1(), p1()

◆ x2()

double Wt::WLineF::x2 ( ) const

Returns the X coordinate of the second point.

See also
y2(), p2()

◆ y1()

double Wt::WLineF::y1 ( ) const

Returns the Y coordinate of the first point.

See also
x1(), p1()

◆ y2()

double Wt::WLineF::y2 ( ) const

Returns the Y coordinate of the second point.

See also
x2(), p2()

Generated on Tue Dec 15 2020 for the C++ Web Toolkit (Wt) by doxygen 1.8.13