engine/math/mConstants.h
2024-01-07 04:36:33 +00:00

21 lines
551 B
C

//-----------------------------------------------------------------------------
// V12 Engine
//
// Copyright (c) 2001 GarageGames.Com
// Portions Copyright (c) 2001 by Sierra Online, Inc.
//-----------------------------------------------------------------------------
#ifndef _MCONSTANTS_H_
#define _MCONSTANTS_H_
#ifdef __GNUC__
#include <math.h>
#else
#define M_PI 3.14159265358979323846
#define M_SQRT2 1.41421356237309504880
#endif
#define M_2PI (3.1415926535897932384626433 * 2.0)
#define M_SQRTHALF 0.7071067811865475244008443
#endif