Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
OOMaths.h File Reference
#include "OOFunctionAttributes.h"
#include <tgmath.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stdint.h>
#include <limits.h>
#include <assert.h>
#include "OOOpenGL.h"
#include "OOFastArithmetic.h"
#include "OOVector.h"
#include "OOHPVector.h"
#include "OOQuaternion.h"
#include "OOMatrix.h"
#include "OOVoxel.h"
#include "OOTriangle.h"
#include "OOBoundingBox.h"
#include "legacy_random.h"
+ Include dependency graph for OOMaths.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define OOMATHS_STANDALONE   0
 
#define OOMATHS_OPENGL_INTEGRATION   !OOMATHS_STANDALONE
 
#define M_PI   3.14159265358979323846 /* pi */
 
#define M_PI_2   1.57079632679489661923 /* pi/2 */
 
#define M_PI_4   0.78539816339744830962 /* pi/4 */
 
#define M_1_PI   0.31830988618379067154 /* 1/pi */
 
#define M_2_PI   0.63661977236758134308 /* 2/pi */
 
#define M_2_SQRTPI   1.12837916709551257390 /* 2/sqrt(pi) */
 
#define M_SQRT2   1.41421356237309504880 /* sqrt(2) */
 
#define M_SQRT1_2   0.70710678118654752440 /* 1/sqrt(2) */
 
#define MIN(A, B)
 
#define MAX(A, B)
 
#define ABS(A)
 

Typedefs

typedef GLfloat OOScalar
 
typedef double OOHPScalar
 

Macro Definition Documentation

◆ ABS

#define ABS ( A)
Value:
((A) < 0 ? (-(A)) : (A))

Definition at line 117 of file OOMaths.h.

◆ M_1_PI

#define M_1_PI   0.31830988618379067154 /* 1/pi */

Definition at line 82 of file OOMaths.h.

◆ M_2_PI

#define M_2_PI   0.63661977236758134308 /* 2/pi */

Definition at line 85 of file OOMaths.h.

◆ M_2_SQRTPI

#define M_2_SQRTPI   1.12837916709551257390 /* 2/sqrt(pi) */

Definition at line 88 of file OOMaths.h.

◆ M_PI

◆ M_PI_2

#define M_PI_2   1.57079632679489661923 /* pi/2 */

Definition at line 76 of file OOMaths.h.

◆ M_PI_4

#define M_PI_4   0.78539816339744830962 /* pi/4 */

Definition at line 79 of file OOMaths.h.

◆ M_SQRT1_2

#define M_SQRT1_2   0.70710678118654752440 /* 1/sqrt(2) */

Definition at line 94 of file OOMaths.h.

◆ M_SQRT2

#define M_SQRT2   1.41421356237309504880 /* sqrt(2) */

Definition at line 91 of file OOMaths.h.

◆ MAX

◆ MIN

#define MIN ( A,
B )
Value:
((A) < (B) ? (A) : (B))

Definition at line 111 of file OOMaths.h.

Referenced by OOCombinedEmissionMapGenerator::anisotropy, OOManifest::dealloc, DescribeValue(), FontMeasureString(), DockEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, StationEntity(OOJavaScriptExtensions)::getJSClass:andPrototype:, GlobalAddFrameCallback(), GlobalAutoAIForRole(), GlobalDisplayNameForCommodity(), GlobalExpandDescription(), GlobalExpandMissionText(), GlobalKeyBindingDescription(), GlobalRemoveFrameCallback(), ManifestComment(), ManifestSetComment(), ManifestShortComment(), MissionMarkSystem(), MissionRunScreen(), MissionUnmarkSystem(), OOEquipmentType(OOJavaScriptExtensions)::oo_clearJSSelf:, OOShipGroup(OOJavaScriptExtensions)::oo_clearJSSelf:, PlayerAddMessageToArrivalReport(), PlayerReplaceShip(), PlayerSetPlayerRole(), PlayerShipAwardEquipmentToCurrentPylon(), PlayerShipCancelDockingRequest(), PlayerShipEngageAutopilotToStation(), PlayerShipHideHUDSelector(), PlayerShipRemoveParcel(), PlayerShipRemovePassenger(), PlayerShipRequestDockingClearance(), PlayerShipSetCustomHUDDial(), PlayerShipSetMultiFunctionDisplay(), PlayerShipSetMultiFunctionText(), PlayerShipSetPrimedEquipment(), PlayerShipShowHUDSelector(), PlayerShipUseSpecialCargo(), ShipAddCargoEntity(), ShipAwardEquipment(), ShipCanAwardEquipment(), ShipCommsMessage(), ShipDumpCargo(), ShipEjectItem(), ShipEjectSpecificItem(), ShipEquipmentStatus(), ShipExitSystem(), ShipGroupAddShip(), ShipGroupRemoveShip(), ShipHasEquipmentProviding(), ShipHasRole(), ShipReactToAIMessage(), ShipRemoveEquipment(), ShipSendAIMessage(), ShipSetAI(), ShipSetCrew(), ShipSetScript(), ShipSpawn(), ShipStaticKeysForRole(), ShipStaticRoleIsInCategory(), ShipStaticSetShipDataForKey(), ShipStaticShipDataForKey(), ShipSwitchAI(), SoundStaticLoad(), SoundStaticPlayMusic(), StationAbortDockingForShip(), StationAddShipToShipyard(), StationCanDockShip(), StationLaunchShipWithRole(), StationSetInterface(), StationSetMarketPrice(), StationSetMarketQuantity(), SystemAddMoon(), SystemAddPlanet(), SystemAddShipsOrGroup(), SystemAddShipsOrGroupToRoute(), SystemAddVisualEffect(), SystemCountEntitiesWithScanClass(), SystemCountShipsWithPrimaryRole(), SystemCountShipsWithRole(), SystemEntitiesWithScanClass(), SystemInfoDistanceToSystem(), SystemInfoRouteToSystem(), SystemInfoSamplePrice(), SystemInfoSetPropertyMethod(), SystemInfoStaticSetInterstellarProperty(), SystemLegacySpawnShip(), SystemSetPopulator(), SystemSetWaypoint(), SystemShipsWithPrimaryRole(), SystemShipsWithRole(), SystemStaticSystemIDForName(), SystemStaticSystemNameForID(), VectorFromCoordinateSystem(), and VectorToCoordinateSystem().

◆ OOMATHS_OPENGL_INTEGRATION

#define OOMATHS_OPENGL_INTEGRATION   !OOMATHS_STANDALONE

Definition at line 43 of file OOMaths.h.

◆ OOMATHS_STANDALONE

#define OOMATHS_STANDALONE   0

Definition at line 39 of file OOMaths.h.

Typedef Documentation

◆ OOHPScalar

typedef double OOHPScalar

Definition at line 69 of file OOMaths.h.

◆ OOScalar

typedef GLfloat OOScalar

Definition at line 64 of file OOMaths.h.