Oolite 1.91.0.7646-241128-10e222e
|
#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"
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 |
#define M_PI 3.14159265358979323846 /* pi */ |
Definition at line 73 of file OOMaths.h.
Referenced by NSString(OODisplayEncoding)::cStringUsingOoliteEncoding, OOLaserShotEntity::dealloc, WormholeEntity::DrawWormholeCorona, GLDrawBallBillboard(), HeadUpDisplay::GLDrawNonlinearCascadeWeapon, GLDrawOvalPoints(), HeadUpDisplay::hudRotateViewpointForVirtualDepth, and StationSetProperty().
#define MAX | ( | A, | |
B ) |
Definition at line 114 of file OOMaths.h.
Referenced by OOMeshToOctreeConverter::addTriangle:, ComponentsFromVersionString(), GlobalSetProperty(), GrowCallbackList(), GrowTessPolygonData(), PlayerSetProperty(), OOOctreeBuilder::SetNode_slow, and ShipRestoreSubEntities().
#define MIN | ( | 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().
#define OOMATHS_OPENGL_INTEGRATION !OOMATHS_STANDALONE |
typedef double OOHPScalar |