LineData Class Reference (Kig Python Scripting API)

| # Kig Python Scripting API Documentation
Overview | Class Hierarchy | Classes | Classes (annotated) | Members

Public Member Functions | Public Attributes | List of all members
LineData Class Reference

Simple class representing a line. More...

`#include <common.h>`

Collaboration diagram for LineData:
[legend]

## Public Member Functions
| LineData ()
| LineData (const Coordinate &na, const Coordinate &nb)
| Constructor.
const Coordinate | dir () const
| The direction of the line.
double | length () const
| The length from a to b.
bool | isParallelTo (const LineData &l) const
| Return true if this line is parallel to l.
bool | isOrthogonalTo (const LineData &l) const
| Return true if this line is orthogonal to l.

## Public Attributes
Coordinate | a
| One point on the line.
Coordinate | b
| Another point on the line.

## Detailed Description

Simple class representing a line.

Used by various functions in Kig.

## Constructor & Destructor Documentation

## ◆ LineData()

LineData::LineData | ( | const Coordinate & | na,
|  | const Coordinate & | nb )

Constructor.

Sets a and b to the given Coordinates.

References a, and b.

## Member Function Documentation

## ◆ dir()

const Coordinate LineData::dir | ( |  | ) | const

The direction of the line.

Equivalent to b - a.

References a, and b.

This file is part of the documentation for tdelibs .
Documentation copyright © 1996-2002 the KDE developers.
Generated on by doxygen 1.16.1 written by Dimitri van Heesch, © 1997-2001