QCAD
Open Source 2D CAD
RMath.h File Reference
#include "../core_global.h"
#include <QMetaType>
#include <cstdio>
#include <cmath>
#include <cerrno>
#include <limits>
#include "RVector.h"

Go to the source code of this file.

Classes

class  RMath
 Math functions. More...
 

Macros

#define M_LN10   2.30258509299404568401799145468436421
 
#define M_LN2   0.693147180559945309417232121458176568
 
#define M_PI   3.14159265358979323846264338327950288
 Copyright (c) 2011-2016 by Andrew Mustun. More...
 
#define M_PI_2   1.57079632679489661923132169163975144
 
#define M_PI_4   0.785398163397448309615660845819875721
 
#define RINFDOUBLE   std::numeric_limits<double>::infinity()
 
#define RMAXDOUBLE   std::numeric_limits<double>::max()
 
#define RMAXINT   INT_MAX
 
#define RMINDOUBLE   -std::numeric_limits<double>::max()
 
#define RMININT   INT_MIN
 
#define RNANDOUBLE   std::numeric_limits<double>::quiet_NaN()
 

Functions

 Q_DECLARE_METATYPE (RMath *)
 

Macro Definition Documentation

#define M_LN10   2.30258509299404568401799145468436421
#define M_LN2   0.693147180559945309417232121458176568
#define M_PI   3.14159265358979323846264338327950288

Copyright (c) 2011-2016 by Andrew Mustun.

All rights reserved.

This file is part of the QCAD project.

QCAD 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 3 of the License, or (at your option) any later version.

QCAD 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 QCAD.

#define M_PI_2   1.57079632679489661923132169163975144
#define M_PI_4   0.785398163397448309615660845819875721
#define RINFDOUBLE   std::numeric_limits<double>::infinity()
#define RMAXDOUBLE   std::numeric_limits<double>::max()
#define RMAXINT   INT_MAX
#define RMINDOUBLE   -std::numeric_limits<double>::max()
#define RMININT   INT_MIN
#define RNANDOUBLE   std::numeric_limits<double>::quiet_NaN()

Function Documentation

Q_DECLARE_METATYPE ( RMath )