ai_constants.h
Go to the documentation of this file.
1// Copyright 2021 Autodesk, Inc. All rights reserved.
2//
3// Use of this software is subject to the terms of the Autodesk license
4// agreement provided at the time of installation or download, or which
5// otherwise accompanies this software in either electronic or hard copy form.
6
12#pragma once
13
14#include <cfloat>
15
27#define AI_PI (3.1415926535897931f)
28#define AI_PITIMES2 (6.2831853071795862f)
29#define AI_PIOVER2 (1.5707963267948966f)
30#define AI_ONEOVERPI (0.3183098861837906f)
31#define AI_ONEOVER2PI (0.1591549430918953f)
32#define AI_E (2.7182818284590452f)
33#define AI_LOG2E (1.4426950408889634f)
34#define AI_LN2 (0.6931471805599453f)
35#define AI_SQRT2 (1.4142135623730951f)
36#define AI_SQRT3 (1.7320508075688772f)
37#define AI_GOLDEN (1.6180339887498948f)
38#define AI_DTOR (0.0174532925199433f)
39#define AI_RTOD (57.295779513082323f)
41#define AI_EPSILON (1.0e-4f)
42#define AI_OPACITY_EPSILON (1.0e-6f)
43#define AI_BIG (1.0e12f)
44#define AI_INFINITE (1.0e30f)
45#define AI_ALMOST_ONE (1.0f - FLT_EPSILON/2)
46/* \}*/
47
48/*\}*/

© 2022 Autodesk, Inc. · All rights reserved · www.arnoldrenderer.com