File indexing completed on 2024-05-05 05:51:13

0001 /***********************************************************************
0002  * SPDX-FileCopyrightText: 2003-2004 Max Howell <max.howell@methylblue.com>
0003  * SPDX-FileCopyrightText: 2008-2009 Martin Sandsmark <martin.sandsmark@kde.org>
0004  *
0005  * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0006  ***********************************************************************/
0007 
0008 #pragma once
0009 
0010 #include <math.h>
0011 
0012 #ifndef HAVE_SINCOS
0013 
0014 #include <qmath.h>
0015 
0016 static inline void sincos(double angleRadians, double *Sin, double *Cos)
0017 {
0018     *Sin = qSin(angleRadians);
0019     *Cos = qCos(angleRadians);
0020 }
0021 
0022 #endif