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

kig

Public Types | Public Member Functions | Static Public Member Functions | List of all members
Goniometry Class Reference

#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 devri.nosp@m.ese@.nosp@m.kde.o.nosp@m.rg Copyright (C) 2004 Pino Toscano tosca.nosp@m.no.p.nosp@m.ino@t.nosp@m.isca.nosp@m.li.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
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:41 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
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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