UFO: Alien Invasion
Loading...
Searching...
No Matches
vector.h File Reference
#include <cmath>
Include dependency graph for vector.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define EQUAL(a, b)
#define Vector2FromInt(x, y)
#define Vector3FromInt(x, y, z)
#define DotProduct(x, y)
 Returns the distance between two 3-dimensional vectors.
#define VectorSubtract(a, b, dest)
#define Vector2Subtract(a, b, dest)
#define VectorAdd(a, b, dest)
#define VectorMul(scalar, b, dest)
#define Vector2Mul(scalar, b, dest)
#define VectorDiv(in, scalar, out)
#define VectorCopy(src, dest)
#define Vector2Copy(src, dest)
#define Vector4Copy(src, dest)
#define Vector2Clear(a)
#define VectorClear(a)
#define VectorInside(vec, mins, maxs)
#define Vector4Clear(a)
#define VectorNegate(src, dest)
#define VectorSet(v, x, y, z)
#define VectorSum(a)
#define Vector2Set(v, x, y)
#define Vector4Set(v, r, g, b, a)
#define VectorCompare(a, b)
#define VectorEqualEpsilon(a, b, epsilon)
#define VectorEqual(a, b)
#define Vector2Compare(a, b)
#define Vector2Equal(a, b)
#define VectorDistSqr(a, b)
#define VectorDist(a, b)
#define Vector2Dist(a, b)
#define VectorLengthSqr(a)
#define VectorNotEmpty(a)
#define VectorEmpty(a)
#define Vector2Empty(a)
#define Vector2NotEmpty(a)
#define Vector4NotEmpty(a)
#define VectorIntZero(a)
#define LinearInterpolation(a, b, x, y)
#define VectorScale(in, scale, out)
#define VectorInterpolation(p1, p2, frac, mid)
#define VectorAbs(a)

Variables

const vec2_t vec2_origin
const vec3_t vec3_origin
const vec4_t vec4_origin
const vec4_t color_white
const pos3_t pos3_origin

Macro Definition Documentation

◆ DotProduct

#define DotProduct ( x,
y )
Value:
((x)[0]*(y)[0]+(x)[1]*(y)[1]+(x)[2]*(y)[2])

Returns the distance between two 3-dimensional vectors.

Definition at line 44 of file vector.h.

Referenced by AddBrushBevels(), AdjustBrushesForOrigin(), AI_CheckFF(), AI_FindHerdLocation(), AIR_GetDestinationWhilePursuing(), BaseWindingForPlane(), BrushMostlyOnSide(), BrushVolume(), BuildFaceExtents(), BuildFacelights(), CalcLightinfoVectors(), Check_EdgeEdgeIntersection(), Check_EdgePlaneIntersection(), Check_MapBrushVolume(), Check_PointPlaneDistance(), Check_SidePointsDown(), ChopWindingInPlace(), CL_CameraMove(), CL_GetWorldCoordsUnderMouse(), CL_ParticleRun2(), ClipWindingEpsilon(), CM_HintedTransformedBoxTrace(), DoesPlaneSplitBrush(), Door_SlidingUse(), FacingAndCoincidentTo(), FinalLightFace(), FindPortalSide(), G_ShootGrenade(), G_ShootSingle(), G_ShotMorale(), GatherSampleLight(), GatherSampleSunlight(), GEO_AngleOfPath3D(), LET_SlideDoor(), NET_WriteDir(), Orthogonalize(), ParallelAndCoincidentTo(), PlaneFromPoints(), ProjectPointOnPlane(), R_CullMeshModel(), R_CullSphere(), R_DrawFlareSurfaces(), R_LoadBspVertexArrays(), R_ModCalcNormalsAndTangents(), R_ModCalcUniqueNormalsAndTangents(), R_SetSurfaceExtents(), R_SetupFrustum(), R_StageColor(), RemoveColinearPoints(), RotatePointAroundVector(), S_SpatializeChannel(), SplitBrush(), SubdivideFace(), TangentVectors(), TestBrushToPlanenum(), TestEdge(), TexinfoForBrushTexture(), TextureAxisFromPlane(), TR_BoxOnPlaneSide(), TR_ClipBoxToBrush(), TR_RecursiveHullCheck(), TR_TestBoxInBrush(), TR_TestLine_r(), TryMergeWinding(), VectorAngleBetween(), VectorLength(), VectorNormalize(), VectorNormalize2(), VectorNormalizeFast(), and VectorRotatePoint().

◆ EQUAL

#define EQUAL ( a,
b )
Value:
(fabsf((a)-(b))<0.0000000001f)

Definition at line 37 of file vector.h.

Referenced by AII_UpdateAircraftStats(), ColorNormalize(), RADAR_Initialise(), UP_AircraftItemDescription(), VecToAngles(), and VectorNormalize2().

◆ LinearInterpolation

#define LinearInterpolation ( a,
b,
x,
y )
Value:
((y)=(a)[1] + ((((x) - (a)[0]) * ((b)[1] - (a)[1])) / ((b)[0] - (a)[0])))

Definition at line 78 of file vector.h.

Referenced by GEO_DrawMarkers().

◆ Vector2Clear

#define Vector2Clear ( a)
Value:
((a)[0]=(a)[1]=0)

Definition at line 54 of file vector.h.

Referenced by uiBox_t::clear(), and uiButtonNode::draw().

◆ Vector2Compare

#define Vector2Compare ( a,
b )
Value:
((a)[0]==(b)[0]?(a)[1]==(b)[1]?true:false:false)

Definition at line 66 of file vector.h.

Referenced by CL_TargetingGrenade().

◆ Vector2Copy

◆ Vector2Dist

#define Vector2Dist ( a,
b )
Value:
(sqrtf(((b)[0]-(a)[0])*((b)[0]-(a)[0])+((b)[1]-(a)[1])*((b)[1]-(a)[1])))

Definition at line 70 of file vector.h.

Referenced by CL_CheckCameraRoute(), LE_CenterView(), and UI_InitRadar().

◆ Vector2Empty

#define Vector2Empty ( a)
Value:
const vec2_t vec2_origin
Definition mathlib.cpp:34
#define Vector2Equal(a, b)
Definition vector.h:67

Definition at line 74 of file vector.h.

Referenced by uiImageNode::onLoaded(), UI_WindowNodeGetNoticePosition(), and VecToAngles().

◆ Vector2Equal

#define Vector2Equal ( a,
b )
Value:
(EQUAL((a)[0],(b)[0])?EQUAL((a)[1],(b)[1])?true:false:false)
#define EQUAL(a, b)
Definition vector.h:37

Definition at line 67 of file vector.h.

Referenced by CITY_GetByPos(), CP_TerrorInCity(), uiAbstractScrollableNode::isSizeChange(), R_ModCalcUniqueNormalsAndTangents(), UI_NodeSetPos(), and UI_NodeSetSize().

◆ Vector2FromInt

#define Vector2FromInt ( x,
y )
Value:
{ static_cast<float>(x), static_cast<float>(y) }

Definition at line 40 of file vector.h.

Referenced by CP_SpawnUFOCarrier_f(), R_DrawQuad(), R_DrawTexture(), UI_DrawSpriteInBox(), UI_LeftRightFlowLayout(), and UI_TopDownFlowLayout().

◆ Vector2Mul

#define Vector2Mul ( scalar,
b,
dest )
Value:
((c)[0]=(scalar)*(b)[0],(dest)[1]=(scalar)*(b)[1])

Definition at line 49 of file vector.h.

◆ Vector2NotEmpty

#define Vector2NotEmpty ( a)
Value:
(!Vector2Empty((a)))
#define Vector2Empty(a)
Definition vector.h:74

Definition at line 75 of file vector.h.

Referenced by CL_RunMapParticles(), ExportLightmap(), SP_worldspawn(), and UI_DrawNode().

◆ Vector2Set

◆ Vector2Subtract

#define Vector2Subtract ( a,
b,
dest )
Value:
((dest)[0]=(a)[0]-(b)[0],(dest)[1]=(a)[1]-(b)[1])

Definition at line 46 of file vector.h.

Referenced by R_ModCalcNormalsAndTangents(), and R_ModCalcUniqueNormalsAndTangents().

◆ Vector3FromInt

#define Vector3FromInt ( x,
y,
z )
Value:
{ static_cast<float>(x), static_cast<float>(y), static_cast<float>(z) }

Definition at line 41 of file vector.h.

◆ Vector4Clear

#define Vector4Clear ( a)
Value:
((a)[0]=(a)[1]=(a)[2]=(a)[3]=0)

Definition at line 57 of file vector.h.

Referenced by entity_t::entity_s(), R_CreateFramebuffer(), and R_InitFBObjects().

◆ Vector4Copy

◆ Vector4NotEmpty

#define Vector4NotEmpty ( a)
Value:
(VectorNotEmpty(a) || !EQUAL((a)[3],0.0f))
#define VectorNotEmpty(a)
Definition vector.h:72

Definition at line 76 of file vector.h.

Referenced by R_SphereShadeGLSL().

◆ Vector4Set

◆ VectorAbs

#define VectorAbs ( a)
Value:
(a[0] = fabsf(a[0]), a[1] = fabsf(a[1]), a[2] = fabsf(a[2]))

Definition at line 81 of file vector.h.

Referenced by Door_SlidingUse(), and AABB::rotateAround().

◆ VectorAdd

◆ VectorClear

◆ VectorCompare

◆ VectorCopy

#define VectorCopy ( src,
dest )
Value:
((dest)[0]=(src)[0],(dest)[1]=(src)[1],(dest)[2]=(src)[2])

Definition at line 51 of file vector.h.

Referenced by AABB::AABB(), AABB::AABB(), AI_CheckForMissionTargets(), AI_CheckLineOfFire(), AI_CivilianCalcActionScore(), AI_FighterCalcActionScore(), AI_FindHerdLocation(), AI_FindHidingLocation(), AI_FindMissionLocation(), AI_PanicCalcActionScore(), AI_PrepBestAction(), AIL_positionapproach(), AIL_positionflee(), AIL_positionherd(), AIL_positionhide(), AIL_positionmission(), AIL_positionshoot(), AIL_positionwander(), AIRFIGHT_CampaignRunProjectiles(), AIRFIGHT_MissTarget(), KeyValuePair::asVec3(), BaseWindingForPlane(), BrushVolume(), BuildFacelights(), BuildLights(), BuildNodeChildren(), BuildPatch(), BuildPatches(), CalcLightinfoVectors(), CalcTextureReflectivity(), Check_MapBrushVolume(), Check_SidesOverlap(), CheckNodraws(), ChopWindingInPlace(), CL_ActorDoMoveTime(), CL_ActorMaximumMove(), CL_ActorMouseTrace(), CL_ActorMoveLength(), CL_ActorMoveMouse(), CL_ActorSelectMouse(), CL_ActorTraceMove(), CL_ActorVis(), CL_AddArrow(), CL_AddBrushModel(), CL_AddMapParticle(), CL_CameraAppear(), CL_CameraRoute(), CL_ClipMoveToLEs(), CL_DisplayFloorArrows(), CL_DisplayObstructionArrows(), CL_DrawLineOfSight(), CL_EntAppear(), CL_GetHitProbability(), CL_GetWorldCoordsUnderMouse(), CL_HullForEntity(), CL_ParticleRun2(), CL_ParticleRunTimed(), CL_ParticleSpawn(), CL_SoundEvent(), CL_TargetingGrenade(), CL_TargetingStraight(), CL_ViewCenterAtGridPosition(), CL_ViewUpdateRenderData(), ClipWindingEpsilon(), CM_CompleteBoxTrace(), CM_EntTestLineDM(), CM_HintedTransformedBoxTrace(), CM_SetInlineModelOrientation(), CMod_LoadSubmodels(), CP_BaseAttackPrepareBattle(), CreateNewFloatPlane(), AiAreaSearch::LQueue::dequeue(), DoRouting(), EmitBrushes(), EmitDrawNode_r(), EmitFaceVertexes(), EmitLeaf(), EmitPlanes(), AiAreaSearch::LQueue::enqueue(), FinalLightFace(), FinishSubdividePatch(), FixFaceEdges(), FixWinding(), G_ActorGetContentFlags(), G_ActorGetEyeVector(), G_ActorMoveLength(), G_ActorShouldStopInMidMove(), G_ActorVis(), G_ClientMove(), G_GetImpactDirection(), G_ShootGrenade(), G_ShootSingle(), G_SpawnField(), G_SpawnFieldPart(), G_SpawnFloor(), G_SpawnParticle(), G_SplashDamage(), GEO_AngleOfPath2D(), GEO_AngleOfPath3D(), GEO_DrawMarkers(), fireDef_t::getShotOrigin(), Grid_CalcPathing(), Grid_FindPath(), GridBox::GridBox(), GridBox::GridBox(), GridBox::GridBox(), LE_AddAmbientSound(), LE_AddToScene(), LE_BrushModelAction(), LE_CenterView(), LE_PlayFootStepSound(), LET_HiddenMove(), LET_PathMove(), LET_Projectile(), Line::Line(), Line::Line(), LM_AddModel(), LM_AddToSceneOrder(), MakeNodePortal(), NET_ReadDir(), NudgeSamplePosition(), uiRadarNode::onCapturedMouseMove(), ParseBrush(), PTL_Trace(), R_AddBspRRef(), R_AddClump(), R_AddCorona(), R_AddLight(), R_AddStaticLight(), R_AddSustainedLight(), R_CreateSurfaceFlare(), R_CullMeshModel(), R_Draw2DMapMarkers(), R_Draw3DGlobe(), R_Draw3DMapMarkers(), R_DrawBoundingBoxBatched(), R_DrawSprite(), R_EnableModelLights(), R_EnableWorldLights(), R_EntitySetOrigin(), R_FillArrayData(), R_GenerateGrass(), R_LoadBspVertexArrays(), R_LoadObjModelVertexArrays(), R_ModCalcNormalsAndTangents(), R_ModCalcUniqueNormalsAndTangents(), R_ModLoadAliasMD2MeshIndexed(), R_ModLoadAliasMD2MeshUnindexed(), R_ModLoadSurfaces(), R_PlantGrass(), R_SetSurfaceExtents(), R_SetSurfaceStageState(), R_SetupSpotLight(), R_StageColor(), R_StageVertex(), R_UpdateLightList(), R_UpdateShadowOrigin(), RemoveColinearPoints(), ReverseWinding(), RT_CheckCell(), RT_FindOpening(), RT_FindOpeningCeilingFrac(), RT_FindOpeningFloorFrac(), RT_GetMapSize(), S_Frame(), S_LoopSample(), S_PlaySample(), SampleNormal(), SEQ_Render3D(), SEQ_SetCamera(), AABB::set(), AABB::set(), GridBox::set(), Line::set(), AABB::setMaxs(), AABB::setMins(), Edict::setOrigin(), entity_t::setScale(), localModel_t::setScale(), uiGeoscapeNode::smoothRotate(), SP_worldspawn(), Step::Step(), SubdivideFace(), SV_HullForEntity(), TangentVectors(), TEST_F(), TestBrushToPlanenum(), TestEdge(), TextureAxisFromPlane(), TR_BoxTrace(), TR_BuildTracingNode_r(), TR_EmptyTransferCargo(), TR_MakeTracingNode(), TR_TestLineDist_r(), TR_TestLineDM(), TR_TileTestLineDM(), TryMergeWinding(), UI_DrawItem(), UI_GeoscapeNodeScroll_f(), UI_GeoscapeNodeZoom_f(), UI_InitModelInfoView(), UI_Transform(), VectorRotatePoint(), WindingCenter(), and WindingFromFace().

◆ VectorDist

◆ VectorDistSqr

#define VectorDistSqr ( a,
b )
Value:
(((b)[0]-(a)[0])*((b)[0]-(a)[0])+((b)[1]-(a)[1])*((b)[1]-(a)[1])+((b)[2]-(a)[2])*((b)[2]-(a)[2]))

Definition at line 68 of file vector.h.

Referenced by AI_FindHerdLocation(), AI_HideNeeded(), AIL_missiontargets(), AIL_positionwander(), AIL_see(), ReactionFire::canSee(), Check_LongestEdge(), CheckNodraws(), CL_TargetingStraight(), G_ShotMorale(), G_Vis(), R_AddLightToEntity(), and R_UpdateLightList().

◆ VectorDiv

#define VectorDiv ( in,
scalar,
out )
Value:
VectorScale((in),(1.0f/(scalar)),(out))
#define VectorScale(in, scale, out)
Definition vector.h:79

Definition at line 50 of file vector.h.

◆ VectorEmpty

#define VectorEmpty ( a)
Value:
const vec3_t vec3_origin
Definition mathlib.cpp:35
#define VectorEqual(a, b)
Definition vector.h:65

Definition at line 73 of file vector.h.

Referenced by AIL_positionwander(), BuildFacelights(), BuildLights(), AABB::isZero(), LET_SlideDoor(), AABB::rotateAround(), and TR_BoxTrace().

◆ VectorEqual

#define VectorEqual ( a,
b )
Value:
(EQUAL((a)[0],(b)[0])?EQUAL((a)[1],(b)[1])?EQUAL((a)[2],(b)[2])?true:false:false:false)

Definition at line 65 of file vector.h.

Referenced by GEO_CalcLine(), Grid_FindPath(), R_ModCalcUniqueNormalsAndTangents(), TEST_F(), TEST_F(), and TR_BoxTrace().

◆ VectorEqualEpsilon

#define VectorEqualEpsilon ( a,
b,
epsilon )
Value:
(EQUAL2((a)[0],(b)[0],epsilon)?EQUAL2((a)[1],(b)[1],epsilon)?EQUAL2((a)[2],(b)[2],epsilon)?true:false:false:false)
#define EQUAL2(a, b, epsilon)
Definition mathlib.h:45

Definition at line 64 of file vector.h.

Referenced by GEO_GetNation().

◆ VectorInside

#define VectorInside ( vec,
mins,
maxs )
Value:
(vec[0] >= mins[0] && vec[0] <= maxs[0] && vec[1] >= mins[1] && vec[1] <= maxs[1] && vec[2] >= mins[2] && vec[2] <= maxs[2])

Definition at line 56 of file vector.h.

Referenced by CM_GetVisibility().

◆ VectorInterpolation

#define VectorInterpolation ( p1,
p2,
frac,
mid )
Value:
((mid)[0]=(p1)[0]+(frac)*((p2)[0]-(p1)[0]),(mid)[1]=(p1)[1]+(frac)*((p2)[1]-(p1)[1]),(mid)[2]=(p1)[2]+(frac)*((p2)[2]-(p1)[2]))

Definition at line 80 of file vector.h.

Referenced by CM_HintedTransformedBoxTrace(), AABB::rotateAround(), RT_FindOpening(), RT_FindOpeningCeilingFrac(), RT_FindOpeningFloorFrac(), TR_BoxTrace(), TR_RecursiveHullCheck(), TR_TestLine_r(), and TR_TestLineDist_r().

◆ VectorIntZero

#define VectorIntZero ( a)
Value:
((a)[0] == 0 && (a)[1] == 0 && (a)[2] == 0)

Definition at line 77 of file vector.h.

Referenced by GridBox::isZero().

◆ VectorLengthSqr

#define VectorLengthSqr ( a)
Value:
((a)[0]*(a)[0]+(a)[1]*(a)[1]+(a)[2]*(a)[2])

Definition at line 71 of file vector.h.

Referenced by Check_PointPlaneDistance(), and G_ShotMorale().

◆ VectorMul

#define VectorMul ( scalar,
b,
dest )
Value:
((dest)[0]=(scalar)*(b)[0],(dest)[1]=(scalar)*(b)[1],(dest)[2]=(scalar)*(b)[2])

Definition at line 48 of file vector.h.

Referenced by Check_EdgePlaneIntersection(), Door_SlidingUse(), LET_SlideDoor(), Orthogonalize(), R_ModCalcNormalsAndTangents(), and R_ModCalcUniqueNormalsAndTangents().

◆ VectorNegate

#define VectorNegate ( src,
dest )
Value:
((dest)[0]=-(src)[0],(dest)[1]=-(src)[1],(dest)[2]=-(src)[2])

Definition at line 58 of file vector.h.

Referenced by BuildFacelights(), BuildPatch(), CL_ParticleRun2(), CM_HintedTransformedBoxTrace(), R_ModelAutoScale(), R_ModLoadSurfaces(), and UI_DrawItem().

◆ VectorNotEmpty

◆ VectorScale

◆ VectorSet

#define VectorSet ( v,
x,
y,
z )
Value:
((v)[0]=(x), (v)[1]=(y), (v)[2]=(z))

Definition at line 59 of file vector.h.

Referenced by AABB::AABB(), AIL_positionshoot(), AIR_AircraftMakeMove(), AIR_NewAircraft(), AIRFIGHT_AddProjectile(), ASE_GetSurfaceAnimation(), BuildFaceExtents(), BuildFacelights(), BuildLights(), CalcTextureReflectivity(), CL_AddArrow(), CL_AddEdictFunc(), CL_AddPathingBox(), CL_AddTargetingBox(), CL_BattlescapeSearchAtGridPos(), CL_CameraMove(), CL_DisplayHomebasePopup(), CL_DrawLineOfSight(), CL_GetWorldCoordsUnderMouse(), CL_SpawnParseEntitystring(), CL_StartGame(), CM_AddMapTile(), DoRouting(), FinalLightFace(), G_BuildForbiddenListForEntity(), G_SpawnFieldGroup(), GEO_3DMapToScreen(), GEO_AngleOfPath2D(), GEO_CalcLine(), GEO_ConvertObjectPositionToGeoscapePosition(), GEO_Draw3DMarkerIfVisible(), GetVectorFromString(), HUD_PopupFiremodeReservation(), LE_AddEdictHighlight(), LE_AddGrenade(), LE_BrushModelAction(), uiGeoscapeNode::onLoading(), uiModelNode::onLoading(), PolarToVec(), R_Draw3DGlobe(), R_DrawCircle(), R_DrawNullModel(), R_DrawStarfield(), R_FillArrayData(), R_ModAddMapTile(), R_ModelAutoScale(), R_ModLoadTags(), R_PlantGrass(), R_RotateCelestialBody(), R_SetSurfaceExtents(), R_SetSurfaceStageState(), R_SphereGenerate(), R_StageColor(), RT_CheckCell(), RT_FindOpening(), RT_GetMapSize(), RT_MicroTrace(), RT_ObstructedTrace(), S_MumbleUpdate(), uiGeoscapeNode::screenTo3DMap(), SEQ_ExecuteModel(), AABB::setMaxs(), AABB::setMins(), SP_worldspawn(), TEST_F(), TEST_F(), TR_BuildTracingNode_r(), U2M_SetDefaultConfigValues(), UI_DrawDragAndDrop(), UI_InitRadar(), uiModelNode_t_set_angles(), uiModelNode_t_set_omega(), uiModelNode_t_set_origin(), uiModelNode_t_set_scale(), and Weather::update().

◆ VectorSubtract

#define VectorSubtract ( a,
b,
dest )
Value:
((dest)[0]=(a)[0]-(b)[0],(dest)[1]=(a)[1]-(b)[1],(dest)[2]=(a)[2]-(b)[2])

Definition at line 45 of file vector.h.

Referenced by AddBrushBevels(), AI_CheckFF(), AI_CheckLineOfFire(), AI_FindHerdLocation(), AIL_positionwander(), BaseWindingForNode(), BaseWindingForPlane(), BuildLights(), BuildVertexNormals(), CalcLightinfoVectors(), CalculateMinsMaxs(), Check_EdgeEdgeIntersection(), Check_EdgePlaneIntersection(), Check_SidesOverlap(), CL_ActorTurnMouse(), CL_AddPathingBox(), CL_AddTargetingBox(), CL_BattlescapeMouseDragging(), CL_CameraRoute(), CL_GetWorldCoordsUnderMouse(), CL_TargetingGrenade(), CL_TargetingStraight(), CM_HintedTransformedBoxTrace(), CMod_LoadEntityString(), Com_GrenadeTarget(), CreateNewFloatPlane(), FixFaceEdges(), FixWinding(), G_ClientShoot(), G_GetImpactDirection(), G_ShootSingle(), G_ShotMorale(), GatherSampleLight(), GEO_AngleOfPath2D(), GEO_AngleOfPath3D(), GEO_StartCenter(), AABB::getDiagonal(), MapTile::getTileBox(), Grid_RecalcRouting(), LE_AddProjectile(), LE_PlaceItem(), LET_PathMove(), MakeNodePortal(), NudgeSamplePosition(), Orthogonalize(), PlaneFromPoints(), R_DrawFlareSurfaces(), R_GenerateGrass(), R_GetLevelOfDetailForModel(), R_ModCalcNormalsAndTangents(), R_ModCalcUniqueNormalsAndTangents(), R_StageTexCoord(), RayIntersectAABB(), RemoveColinearPoints(), AABB::rotateAround(), RT_GetMapSize(), S_LoopSample(), S_SpatializeChannel(), SampleNormal(), uiGeoscapeNode::smoothRotate(), TestEdge(), TR_BoxTrace(), TryMergeWinding(), UI_GeoscapeNodeScroll_f(), UI_InitRadar(), VectorCompareEps(), VectorNearer(), WindingArea(), and WindingIsTiny().

◆ VectorSum

#define VectorSum ( a)
Value:
((a)[0]+(a)[1]+(a)[2])

Definition at line 60 of file vector.h.

Referenced by SP_worldspawn().

Variable Documentation

◆ color_white

const vec4_t color_white
extern

Definition at line 1004 of file r_state.cpp.

Referenced by R_Color().

◆ pos3_origin

const pos3_t pos3_origin
extern

Definition at line 37 of file mathlib.cpp.

Referenced by AiAreaSearch::AiAreaSearch().

◆ vec2_origin

const vec2_t vec2_origin
extern

Definition at line 34 of file mathlib.cpp.

Referenced by GEO_GetGeoscapeAngle().

◆ vec3_origin

◆ vec4_origin

const vec4_t vec4_origin
extern

Definition at line 36 of file mathlib.cpp.

Referenced by R_DrawModelDirect(), and R_DrawModelParticle().