• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kig

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

#include <common.h>

Public Member Functions

 LineData ()
 
 LineData (const Coordinate &na, const Coordinate &nb)
 
const Coordinate dir () const
 
bool isOrthogonalTo (const LineData &l) const
 
bool isParallelTo (const LineData &l) const
 
double length () const
 

Public Attributes

Coordinate a
 
Coordinate b
 

Detailed Description

Simple class representing a line.

Used by various functions in Kig.

Definition at line 49 of file misc/common.h.

Constructor & Destructor Documentation

LineData::LineData ( )
inline

Default constructor.

Sets a and b to the origin.

Definition at line 56 of file misc/common.h.

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

Constructor.

Sets a and b to the given Coordinates.

Definition at line 60 of file misc/common.h.

Member Function Documentation

const Coordinate LineData::dir ( ) const
inline

The direction of the line.

Equivalent to b - a.

Definition at line 72 of file misc/common.h.

bool LineData::isOrthogonalTo ( const LineData &  l) const

Return true if this line is orthogonal to l.

Definition at line 474 of file common.cpp.

bool LineData::isParallelTo ( const LineData &  l) const

Return true if this line is parallel to l.

Definition at line 459 of file common.cpp.

double LineData::length ( ) const
inline

The length from a to b.

Definition at line 76 of file misc/common.h.

Member Data Documentation

Coordinate LineData::a

One point on the line.

Definition at line 64 of file misc/common.h.

Coordinate LineData::b

Another point on the line.

Definition at line 68 of file misc/common.h.


The documentation for this class was generated from the following files:
  • misc/common.h
  • common.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:12:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kig

Skip menu "kig"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal