-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathmath.h
More file actions
48 lines (36 loc) · 1.06 KB
/
Copy pathmath.h
File metadata and controls
48 lines (36 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#pragma once
/*
* SPDX-FileCopyrightText: 2025 Cesium contributors <https://github.com/ForNeVeR/Cesium>
*
* SPDX-License-Identifier: MIT
*/
#include <stdlib.h>
#include <float.h>
#if FLT_EVAL_METHOD == 0
#define float_t float
#define double_t double
#endif
#if FLT_EVAL_METHOD == 1
#define float_t double
#define double_t double
#endif
#if FLT_EVAL_METHOD == 2
#define float_t long double
#define double_t long double
#endif
__cli_import("Cesium.Runtime.MathFunctions::SqrtF")
float sqrtf(float arg);
__cli_import("Cesium.Runtime.MathFunctions::Sqrt")
double sqrt(double arg);
__cli_import("Cesium.Runtime.MathFunctions::LogF")
float logf(float arg);
__cli_import("Cesium.Runtime.MathFunctions::Log")
double log(double arg);
__cli_import("Cesium.Runtime.MathFunctions::CosF")
float cosf(float arg);
__cli_import("Cesium.Runtime.MathFunctions::Cos")
double cos(double arg);
__cli_import("Cesium.Runtime.MathFunctions::SinF")
float sinf(float arg);
__cli_import("Cesium.Runtime.MathFunctions::Sin")
double sin(double arg);