• Skip to content
  • Skip to link menu
KDE 4.0 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

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

Static Public Member Functions

static double convert (const double angle, const Goniometry::System from, const Goniometry::System to)
static QStringList systemList ()
static Goniometry::System intToSystem (const int index)

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 32 of file goniometry.cc.

Goniometry::Goniometry ( double  value,
Goniometry::System  system 
)

Definition at line 38 of file goniometry.cc.

Goniometry::~Goniometry (  ) 

Definition at line 44 of file goniometry.cc.


Member Function Documentation

void Goniometry::setValue ( double  value  ) 

Definition at line 48 of file goniometry.cc.

double Goniometry::value (  )  const

Definition at line 53 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 58 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 63 of file goniometry.cc.

Goniometry::System Goniometry::system (  )  const

Definition at line 69 of file goniometry.cc.

double Goniometry::getValue ( Goniometry::System  system  ) 

Definition at line 74 of file goniometry.cc.

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 86 of file goniometry.cc.

QStringList Goniometry::systemList (  )  [static]

Get a list of the supported goniometric systems.

Definition at line 118 of file goniometry.cc.

Goniometry::System Goniometry::intToSystem ( const int  index  )  [static]

Definition at line 127 of file goniometry.cc.

Goniometry & Goniometry::operator= ( const Goniometry &  g  ) 

Definition at line 79 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
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  •   docs
  •   src
  • parley
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