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

kig

Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CubicCartesianData Class Reference

#include <cubic-common.h>

Public Member Functions

 CubicCartesianData ()
 
 CubicCartesianData (double a000, double a001, double a002, double a011, double a012, double a022, double a111, double a112, double a122, double a222)
 
 CubicCartesianData (const double incoeffs[10])
 
void normalize ()
 
bool valid () const
 

Static Public Member Functions

static CubicCartesianData invalidData ()
 

Public Attributes

double coeffs [10]
 

Detailed Description

This class represents an equation of a cubic in the form $ a_{ijk} x_i x_j x_k = 0 $ (in homogeneous coordinates, $ i,j,k = 0,1,2 $), $ i <= j <= k $.

The coefficients are stored in lessicografic order.

Definition at line 31 of file cubic-common.h.

Constructor & Destructor Documentation

CubicCartesianData::CubicCartesianData ( )
explicit

Default Constructor.

Constructs a new CubicCartesianData, with all the coeffs initialized to 0.

Definition at line 32 of file cubic-common.cc.

CubicCartesianData::CubicCartesianData ( double  a000,
double  a001,
double  a002,
double  a011,
double  a012,
double  a022,
double  a111,
double  a112,
double  a122,
double  a222 
)
inline

Constructor.

Construct a new CubicCartesianData, with the given values as coeffs.

Definition at line 48 of file cubic-common.h.

CubicCartesianData::CubicCartesianData ( const double  incoeffs[10])

Definition at line 37 of file cubic-common.cc.

Member Function Documentation

CubicCartesianData CubicCartesianData::invalidData ( )
static

Create an invalid CubicCartesianData.

This is a special state of a CubicCartesianData that signals that something went wrong..

See also
CubicCartesianData::valid

We represent an invalid CubicCartesianData by setting all the coeffs to positive or negative infinity. This is handy, since it doesn't require us to adapt most of the functions, it doesn't need extra space, and most of the times that we should get an invalid CubicCartesianData, we get one automatically..

Definition at line 532 of file cubic-common.cc.

void CubicCartesianData::normalize ( )

Definition at line 44 of file cubic-common.cc.

bool CubicCartesianData::valid ( ) const

Return whether this is a valid CubicCartesianData.

See also
CubicCartesianData::invalidData

Definition at line 539 of file cubic-common.cc.

Member Data Documentation

double CubicCartesianData::coeffs[10]

Definition at line 34 of file cubic-common.h.


The documentation for this class was generated from the following files:
  • cubic-common.h
  • cubic-common.cc
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:40 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