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

kig

Goniometry Class Reference

#include <goniometry.h>

List of all members.


Detailed Description

Manage an angle and convert it from/to other goniometric systems.

Definition at line 28 of file goniometry.h.


Public Types

enum  System { Deg, Rad, Grad }

Public Member Functions

void convertTo (Goniometry::System system)
double getValue (Goniometry::System system)
 Goniometry (double value, Goniometry::System system)
 Goniometry ()
Goniometry & operator= (const Goniometry &g)
void setSystem (Goniometry::System system)
void setValue (double value)
Goniometry::System system () const
double value () const
 ~Goniometry ()

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

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

double Goniometry::convert ( const double  angle,
const Goniometry::System  from,
const Goniometry::System  to 
) [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.

Goniometry::System Goniometry::intToSystem ( const int  index  )  [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.

QStringList Goniometry::systemList (  )  [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:
  • goniometry.h
  • goniometry.cc

kig

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

kdeedu

Skip menu "kdeedu"
  • kalzium
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
  •   stepcore
Generated for kdeedu by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal