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:
Collaboration diagram for AbstractLine:

List of all members.

Public Member Functions

double slope () const
 Get the slope of this AbstractLine.
const TQString 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.

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

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 tdelibs .
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Nov 5 17:20:02 2022 by doxygen 1.6.1 written by Dimitri van Heesch, © 1997-2001