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-2018 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

◆ M_LN10

#define M_LN10   2.30258509299404568401799145468436421

◆ M_LN2

#define M_LN2   0.693147180559945309417232121458176568

◆ M_PI

#define M_PI   3.14159265358979323846264338327950288

Copyright (c) 2011-2018 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.

◆ M_PI_2

#define M_PI_2   1.57079632679489661923132169163975144

◆ M_PI_4

#define M_PI_4   0.785398163397448309615660845819875721

◆ RINFDOUBLE

#define RINFDOUBLE   std::numeric_limits<double>::infinity()

◆ RMAXDOUBLE

#define RMAXDOUBLE   std::numeric_limits<double>::max()

◆ RMAXINT

#define RMAXINT   INT_MAX

◆ RMINDOUBLE

#define RMINDOUBLE   -std::numeric_limits<double>::max()

◆ RMININT

#define RMININT   INT_MIN

◆ RNANDOUBLE

#define RNANDOUBLE   std::numeric_limits<double>::quiet_NaN()

Function Documentation

◆ Q_DECLARE_METATYPE()

Q_DECLARE_METATYPE ( RMath )