kig
#include <goniometry.h>
| Public Types | |
| enum | System { Deg, Rad, Grad } | 
| Public Member Functions | |
| Goniometry () | |
| Goniometry (double value, Goniometry::System system) | |
| ~Goniometry () | |
| void | convertTo (Goniometry::System system) | 
| double | getValue (Goniometry::System system) | 
| Goniometry & | operator= (const Goniometry &g) | 
| void | setSystem (Goniometry::System system) | 
| void | setValue (double value) | 
| Goniometry::System | system () const | 
| double | value () const | 
| Static Public Member Functions | |
| static double | convert (const double angle, const Goniometry::System from, const Goniometry::System to) | 
| static Goniometry::System | intToSystem (const int index) | 
| static QStringList | systemList () | 
Detailed Description
Manage an angle and convert it from/to other goniometric systems.
Definition at line 28 of file goniometry.h.
Member Enumeration Documentation
| enum Goniometry::System | 
| Enumerator | |
|---|---|
| Deg | |
| Rad | |
| Grad | |
Definition at line 31 of file goniometry.h.
Constructor & Destructor Documentation
| Goniometry::Goniometry | ( | ) | 
This file is part of Kig, a KDE program for Interactive Geometry...
Copyright (C) 2004 Dominique Devriese devriese@kde.org Copyright (C) 2004 Pino Toscano toscano.pino@tiscali.it
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Definition at line 33 of file goniometry.cc.
| Goniometry::Goniometry | ( | double | value, | 
| Goniometry::System | system | ||
| ) | 
Definition at line 39 of file goniometry.cc.
| Goniometry::~Goniometry | ( | ) | 
Definition at line 45 of file goniometry.cc.
Member Function Documentation
| 
 | static | 
The most useful method of this class: convert the specified angle from the system from to the system to. 
Definition at line 87 of file goniometry.cc.
| void Goniometry::convertTo | ( | Goniometry::System | system | ) | 
Set the system of the current angle to system and convert the value to the new system using convert(). 
- See also
- setSystem()
Definition at line 64 of file goniometry.cc.
| double Goniometry::getValue | ( | Goniometry::System | system | ) | 
Definition at line 75 of file goniometry.cc.
| 
 | static | 
Definition at line 128 of file goniometry.cc.
| Goniometry & Goniometry::operator= | ( | const Goniometry & | g | ) | 
Definition at line 80 of file goniometry.cc.
| void Goniometry::setSystem | ( | Goniometry::System | system | ) | 
Set the system of the current angle to system, but it doesn't convert the value to the new system. 
- See also
- convertTo()
Definition at line 59 of file goniometry.cc.
| void Goniometry::setValue | ( | double | value | ) | 
Definition at line 49 of file goniometry.cc.
| Goniometry::System Goniometry::system | ( | ) | const | 
Definition at line 70 of file goniometry.cc.
| 
 | static | 
Get a list of the supported goniometric systems.
Definition at line 119 of file goniometry.cc.
| double Goniometry::value | ( | ) | const | 
Definition at line 54 of file goniometry.cc.
The documentation for this class was generated from the following files:
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.
 KDE API Reference
    KDE API Reference