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:

Collaboration 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
| static const ObjectType* AbstractLine::stype | ( | ) | [static] |
| double AbstractLine::slope | ( | ) | const |
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 ).
| bool AbstractLine::equals | ( | const Object & | rhs | ) | const [virtual] |
