AbstractLine Class Reference
An Object class that is the base of the line-like Object's: Segment, Line and Ray. More...Inheritance diagram for AbstractLine:
Public Member Functions | |
double | slope () const |
Get the slope of this AbstractLine. | |
const QString | equationString () const |
Get a string containing the equation of this line in the form "y = a * x + b ". | |
LineData | data () const |
Get the LineData for this AbstractLine. | |
bool | equals (const Object &rhs) const |
Returns true if this Object is equal to rhs. | |
Static Public Member Functions | |
static const ObjectType * | stype () |
Returns the ObjectType representing the AbstractLine type. |
Detailed Description
An Object class that is the base of the line-like Object's: Segment, Line and Ray.
Member Function Documentation
|
Returns true if this Object is equal to rhs. This function checks whether rhs is of the same Object type, and whether it contains the same data as this Object. Implements Object. |
|
Get the slope of this AbstractLine. . For a line through points a( xa, ya ) and b ( xb, yb ), this means the value ( yb - ya ) / ( xb - xa ). |
|
Returns the ObjectType representing the AbstractLine type.
Reimplemented from Curve. |