Kig Python Scripting API Documentation

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:

Inheritance graph
[legend]
Collaboration diagram for AbstractLine:

Collaboration graph
[legend]
List of all members.

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 ObjectTypestype ()
 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

bool AbstractLine::equals const Object rhs  )  const [virtual]
 

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.

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

static const ObjectType* AbstractLine::stype  )  [static]
 

Returns the ObjectType representing the AbstractLine type.

Reimplemented from Curve.

Reimplemented in Segment, Ray, and Line.

KDE Logo
This file is part of the documentation for kdelibs 0.10.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Mon Aug 15 23:01:22 2005 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2001