Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

l_math.h File Reference

#include <math.h>

Include dependency graph for l_math.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define DEG2RAD(a)   ( a * M_PI ) / 180.0F
#define DotProduct(x, y)   (x[0]*y[0]+x[1]*y[1]+x[2]*y[2])
#define EQUAL_EPSILON   0.001
#define M_PI   3.14159265358979323846
#define PITCH   0
#define Q_PI   3.14159265358979323846
#define ROLL   2
#define SIDE_BACK   1
#define SIDE_CROSS   -2
#define SIDE_FRONT   0
#define SIDE_ON   2
#define Vector4Copy(a, b)   {b[0]=a[0];b[1]=a[1];b[2]=a[2];b[3]=a[3];}
#define VectorAdd(a, b, c)   {c[0]=a[0]+b[0];c[1]=a[1]+b[1];c[2]=a[2]+b[2];}
#define VectorClear(x)   {x[0] = x[1] = x[2] = 0;}
#define VectorCopy(a, b)   {b[0]=a[0];b[1]=a[1];b[2]=a[2];}
#define VectorMA(v, s, b, o)   ((o)[0]=(v)[0]+(b)[0]*(s),(o)[1]=(v)[1]+(b)[1]*(s),(o)[2]=(v)[2]+(b)[2]*(s))
#define VectorNegate(x, y)   {y[0]=-x[0];y[1]=-x[1];y[2]=-x[2];}
#define VectorScale(v, s, o)   ((o)[0]=(v)[0]*(s),(o)[1]=(v)[1]*(s),(o)[2]=(v)[2]*(s))
#define VectorSubtract(a, b, c)   {c[0]=a[0]-b[0];c[1]=a[1]-b[1];c[2]=a[2]-b[2];}
#define YAW   1

Typedefs

typedef vec_t vec3_t [3]
typedef vec_t vec4_t [4]
typedef float vec_t

Functions

vec_t _DotProduct (vec3_t v1, vec3_t v2)
void _VectorAdd (vec3_t va, vec3_t vb, vec3_t out)
void _VectorCopy (vec3_t in, vec3_t out)
void _VectorMA (vec3_t va, double scale, vec3_t vb, vec3_t vc)
void _VectorScale (vec3_t v, vec_t scale, vec3_t out)
void _VectorSubtract (vec3_t va, vec3_t vb, vec3_t out)
void AddPointToBounds (const vec3_t v, vec3_t mins, vec3_t maxs)
void AngleVectors (const vec3_t angles, vec3_t forward, vec3_t right, vec3_t up)
void ClearBounds (vec3_t mins, vec3_t maxs)
vec_t ColorNormalize (vec3_t in, vec3_t out)
void CreateRotationMatrix (vec3_t angles, float matrix[3][3])
void CrossProduct (const vec3_t v1, const vec3_t v2, vec3_t cross)
vec_t Q_rint (vec_t in)
void R_ConcatRotations (float in1[3][3], float in2[3][3], float out[3][3])
void RotatePoint (vec3_t point, float matrix[3][3])
qboolean VectorCompare (vec3_t v1, vec3_t v2)
void VectorInverse (vec3_t v)
double VectorLength (vec3_t v)
vec_t VectorNormalize (vec3_t inout)
vec_t VectorNormalize2 (const vec3_t v, vec3_t out)

Variables

vec3_t vec3_origin


Define Documentation

#define DEG2RAD  )     ( a * M_PI ) / 180.0F
 

Definition at line 48 of file l_math.h.

Referenced by CG_AddParticleToScene(), DoRailDiscs(), FakeTexCoordsToTexMat(), R_Init(), RotatePointAroundVector(), and UI_DrawPlayer().

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

Definition at line 60 of file l_math.h.

Referenced by AAS_Accelerate(), AAS_AgainstLadder(), AAS_AreaVolume(), AAS_BoxOnPlaneSide2(), AAS_BoxOriginDistanceFromPlane(), AAS_CheckArea(), AAS_CheckFaceWindingPlane(), AAS_ClientMovementPrediction(), AAS_ClosestEdgePoints(), AAS_DrawArrow(), AAS_FindFaceReachabilities(), AAS_FlipAreaFaces(), AAS_GapFace(), AAS_GroundFace(), AAS_InsideFace(), AAS_LadderSubdivideArea_r(), AAS_OnGround(), AAS_PointAreaNum(), AAS_PointInsideFace(), AAS_PositionBrush(), AAS_ProjectPointOntoVector(), AAS_Reachability_EqualFloorHeight(), AAS_Reachability_Grapple(), AAS_Reachability_Jump(), AAS_Reachability_Ladder(), AAS_Reachability_Step_Barrier_WaterJump_WalkOffLedge(), AAS_TestSplitPlane(), AAS_TraceAreas(), AAS_TraceClientBBox(), AAS_TransformPlane(), AbsoluteToLocal(), AddBrushBevels(), AddEdge(), AddSeperators(), AddWindingToConvexHull(), AdjustBrushesForOrigin(), AllocateLightmapForSurface(), Autosprite2Deform(), BasePortalVis(), BaseWindingForPlane(), BotAimAtEnemy(), BotCheckBlocked(), BotFinishTravel_Jump(), BotGetLongTermGoal(), BotImport_DebugLineShow(), BotInputToUserCommand(), BotTravel_Elevator(), BotTravel_FuncBobbing(), BotTravel_Jump(), BoxOriginDistanceFromPlane(), Brush_MakeFaceWinding(), Brush_Point(), Brush_Ray(), Brush_SelectFaceForDragging(), BrushMostlyOnSide(), BrushVolume(), CEpairsWrapper::CalculateRotatedBounds(), CG_DamageFeedback(), CG_ImpactMark(), CG_LightVerts(), CG_OffsetFirstPersonView(), CG_PlayerAngles(), CG_PlayerFlag(), CG_ReflectVelocity(), CG_Tracer(), CheckWinding(), ChopFaceByBrush(), ChopWindingInPlace(), ClipLineToFace(), ClipSkyPolygon(), ClipToSeperators(), ClipWindingEpsilon(), CM_AddFacetBevels(), CM_CheckFacetPlane(), CM_DrawDebugSurface(), CM_FindPlane(), CM_GenerateBoundaryForPoints(), CM_GenerateFacetFor4Points(), CM_PlaneFromPoints(), CM_PointContents(), CM_PointLeafnum_r(), CM_PointOnPlaneSide(), CM_PositionTestInPatchCollide(), CM_ProjectPointOntoVector(), CM_TestBoxInBrush(), CM_TracePointThroughPatchCollide(), CM_TraceThroughBrush(), CM_TraceThroughPatchCollide(), CM_TraceThroughSphere(), CM_TraceThroughTree(), CM_TraceThroughVerticalCylinder(), CM_TransformedPointContents(), ColinearEdge(), ComputeBest2DVector(), ComputeScale(), ComputeTexCoords(), CreateFilters(), CreatePassages(), CCamWnd::CullBrush(), DebugLine(), DirToByte(), DrawSurfaceForSide(), EmitBrushPrimitTextureCoordinates(), EmitTerrainVerts(), EmitTerrainVerts2(), EmitTextureCoordinates(), Face_FitTexture(), Face_MakePlane(), Face_MoveTexture(), Face_MoveTexture_BrushPrimit(), FilterMapDrawSurfIntoTree(), FilterTrace(), FindPlaneSeperatingWindings(), FindPortalSide(), FixSurfaceJunctions(), G_BounceItem(), G_BounceMissile(), G_BounceProjectile(), G_RotatePoint(), G_TryPushingProxMine(), GenerateBoundaryForPoints(), GlobalVectorToLocal(), HL_FaceOnWinding(), HL_SplitBrush(), HL_SplitBrushWithFace(), InsertPointOnEdge(), InsideFace(), InsideWinding(), IsMirror(), LightContributionToPoint(), LightingAtSample(), LodErrorForVolume(), MakeNormalVectors(), MapPlaneFromPoints(), MergeWindings(), NodeForPoint(), NonConvex(), ParseFace(), PassageChopWinding(), Patch_ApplyMatrix(), Pickup_Powerup(), PlaceOccupant(), Plane_FromPoints(), PlaneFromPoints(), PlaneFromWinding(), PM_Accelerate(), PM_ClipVelocity(), PM_GroundTrace(), PM_SlideMove(), PM_StepSlideMove(), PM_WalkMove(), PM_WaterMove(), PointInLeaf(), PointInLeafnum(), PointOnWinding(), PointToPolygonFormFactor(), ProjectPointOnPlane(), ProjectPointOntoVector(), ProjectRadius(), Q1_FaceOnWinding(), Q1_FacePlane(), Q1_PointInLeaf(), Q1_SplitBrush(), Q1_SplitBrushWithFace(), Q2_BrushSideWinding(), Q2_FaceOnWinding(), Q2_ParseMapEntity(), Q3_BrushSideWinding(), Q3_FaceOnWinding(), Q3_FindVisibleBrushSides(), Q3_PlaneFromPoints(), Q3_SurfacePlane(), R_BoxSurfaces_r(), R_ChopPolyBehindPlane(), R_CullLocalBox(), R_CullPointAndRadius(), R_CullSurface(), R_DlightFace(), R_GetPortalOrientations(), R_InitSkyTexCoords(), R_MarkFragments(), R_MirrorPoint(), R_MirrorVector(), R_MirrorViewBySurface(), R_PointInLeaf(), R_RecursiveWorldNode(), R_RotateForEntity(), R_SetupEntityLighting(), R_SetupFrustum(), R_SubdividePatchToGrid(), R_TransformDlights(), R_WorldToLocal(), RayTriangleIntersect(), RB_AddFlare(), RB_BeginDrawingView(), RB_CalcDiffuseColor(), RB_CalcEnvironmentTexCoords(), RB_CalcFogTexCoords(), RB_CalcSpecularAlpha(), RB_ProjectionShadowDeform(), RB_ShadowTessEnd(), RB_SurfaceAnim(), RecursiveLeafFlow(), RecursivePassagePortalFlow(), RemoveColinearPoints(), RotateFaceTexture_BrushPrimit(), RotatePoint(), Select_ApplyMatrix(), SelectCurvePointByRay(), SelectEdgeByRay(), idPointListInterface::selectPointByRay(), SelectVertexByRay(), SetFacetFilter(), Sin_BrushSideWinding(), Sin_FaceOnWinding(), SP_func_door(), SphereCull(), SplitBrush(), SplitMeshByPlane(), SubdivideAreaLight(), SubdivideDrawSurf(), SubdivideFace(), SunToPlane(), SurfIsOffscreen(), TestBrushToPlanenum(), TestEdge(), TexinfoForBrushTexture(), TextureAxisFromPlane(), TH_CreateTrianglePlanes(), TH_FindTetrahedron2(), TH_IntersectTrianglePlanes(), TH_PlaneFromPoints(), TH_TetrahedronVolume(), TH_TryTriangle(), TraceAgainstFacet(), TraceGrid(), TryMergeWinding(), VectorBetweenVectors(), VectorLengthSquared(), VectorNormalizeFast(), VectorRotate(), VisChopWinding(), VL_ChopWinding(), VL_CreateSkyLights(), VL_FindAdjacentSurface(), VL_FloodDirectedLight(), VL_FloodLight(), VL_GenerateBoundaryForPoints(), VL_GenerateFacetFor4Points(), VL_GetFilter(), VL_LightmapMatrixFromPoints(), VL_LightSurfaceWithVolume(), VL_PlaneForEdgeToWinding(), VL_PlaneFromPoints(), VL_PlaneFromWinding(), VL_PointInLeafnum_r(), VL_R_FloodLight(), VL_R_WindingAreaOutsideSolid(), VL_SmoothenLightmapEdges(), VL_SplitLightVolume(), VL_SplitWinding(), VL_SubdivideAreaLight(), VS_ChopWinding(), VS_CreateSkyLights(), VS_FindAdjacentSurface(), VS_FloodDirectedLight(), VS_FloodLight(), VS_GenerateBoundaryForPoints(), VS_GenerateFacetFor4Points(), VS_GetFilter(), VS_LightmapMatrixFromPoints(), VS_LightSurfaceWithVolume(), VS_PlaneForEdgeToWinding(), VS_PlaneFromPoints(), VS_PlaneFromWinding(), VS_PointInLeafnum_r(), VS_R_FloodLight(), VS_R_WindingAreaOutsideSolid(), VS_SmoothenLightmapEdges(), VS_SplitLightVolume(), VS_SplitWinding(), VS_SubdivideAreaLight(), Winding_BaseForPlane(), Winding_Clip(), Winding_Plane(), Winding_PlanesConcave(), Winding_PointInside(), Winding_SplitEpsilon(), Winding_TryMerge(), Winding_VectorIntersect(), WindingError(), WindingOnPlaneSide(), WindingPlane(), WindingsNonConvex(), WriteMapBrush(), and WritePortalFile_r().

#define EQUAL_EPSILON   0.001
 

Definition at line 56 of file l_math.h.

#define M_PI   3.14159265358979323846
 

Definition at line 51 of file l_math.h.

Referenced by AAS_Reachability_Grapple(), AngleVectors(), BG_EvaluateTrajectory(), BG_EvaluateTrajectoryDelta(), Bullet_Fire(), CG_AddScorePlum(), CG_CalcFov(), CG_CalcViewValues(), CG_DrawPlayerHead(), CG_DrawStatusBarHead(), CG_OffsetThirdPersonView(), CG_Player(), InitShooter(), Item_Paint(), R_SetupFrustum(), R_SetupProjection(), RB_CalcBulgeVertexes(), RB_SurfaceSprite(), S_MakeTestPattern(), SP_func_pendulum(), Terrain_AddMovePoint(), angles_t::toForward(), toMatrix(), angles_t::toVectors(), UI_DrawPlayer(), and UI_LegsSequencing().

#define PITCH   0
 

Definition at line 42 of file l_math.h.

Referenced by BG_TouchJumpPad(), BotAimAtEnemy(), BotInputToUserCommand(), BotMapScripts(), CL_CreateCmd(), IN_CenterView(), and vectoyaw().

#define Q_PI   3.14159265358979323846
 

Definition at line 46 of file l_math.h.

Referenced by Brush_MakeSidedSphere(), DrawBrushEntityName(), CXYWnd::DrawCameraIcon(), InsertMD3Model(), PaintedModel(), Patch_RotateTexture(), Select_RotateAxis(), VectorRotate(), CXYWnd::XY_MouseDown(), and CXYWnd::XY_MouseMoved().

#define ROLL   2
 

Definition at line 44 of file l_math.h.

Referenced by BotInputToUserCommand().

#define SIDE_BACK   1
 

Definition at line 39 of file l_math.h.

Referenced by ClipSkyPolygon(), MergeWindings(), VL_ChopWindingWithBrush(), VL_LightSurfaceWithVolume(), VL_R_FloodLight(), VS_ChopWindingWithBrush(), VS_LightSurfaceWithVolume(), and VS_R_FloodLight().

#define SIDE_CROSS   -2
 

Definition at line 40 of file l_math.h.

#define SIDE_FRONT   0
 

Definition at line 37 of file l_math.h.

Referenced by ClipSkyPolygon(), and MergeWindings().

#define SIDE_ON   2
 

Definition at line 38 of file l_math.h.

Referenced by ChopWindingInPlace(), ClipSkyPolygon(), ClipWindingEpsilon(), PassageChopWinding(), R_ChopPolyBehindPlane(), VisChopWinding(), VL_ChopWinding(), VL_R_FloodLight(), VL_SplitLightVolume(), VL_SplitWinding(), VS_ChopWinding(), VS_R_FloodLight(), VS_SplitLightVolume(), VS_SplitWinding(), Winding_Clip(), and Winding_SplitEpsilon().

#define Vector4Copy a,
 )     {b[0]=a[0];b[1]=a[1];b[2]=a[2];b[3]=a[3];}
 

Definition at line 64 of file l_math.h.

Referenced by CM_AddFacetBevels(), CM_DrawDebugSurface(), CM_FindPlane(), CM_FindPlane2(), CM_TraceThroughPatchCollide(), CM_ValidateFacet(), and UI_SPLevelMenu_MenuDraw().

#define VectorAdd a,
b,
 )     {c[0]=a[0]+b[0];c[1]=a[1]+b[1];c[2]=a[2]+b[2];}
 

Definition at line 62 of file l_math.h.

Referenced by AAS_AlternativeRouteGoals(), AAS_BestReachableArea(), AAS_BestReachableFromJumpPadArea(), AAS_CheckArea(), AAS_ClientMovementPrediction(), AAS_EntityBSPData(), AAS_FaceCenter(), AAS_FlipAreaFaces(), AAS_GetJumpPadInfo(), AAS_Reachability_Elevator(), AAS_Reachability_EqualFloorHeight(), AAS_Reachability_FuncBobbing(), AAS_Reachability_Jump(), AAS_Reachability_Ladder(), AAS_Reachability_Step_Barrier_WaterJump_WalkOffLedge(), AAS_Reachability_Teleport(), AAS_Reachability_WalkOffLedge(), AAS_StoreArea(), AAS_UpdateEntity(), AAS_WeaponJumpZVelocity(), AbsoluteToLocal(), AddSkyPolygon(), AimAtTarget(), BaseWindingForPlane(), BotAirControl(), BotAttackMove(), BotEntityVisible(), BotFuncBobStartEnd(), BotFuncButtonActivateGoal(), BotFuncDoorActivateGoal(), BotItemGoalInVisButNotVisible(), BotModelMinsMaxs(), BotRoamGoal(), BotTouchingGoal(), BotTravel_Grapple(), BotTriggerMultipleActivateGoal(), Brush_DrawFacingAngle(), Brush_MakeSidedSphere(), Brush_Move(), Brush_MoveVertex_old1(), Brush_MoveVertex_old2(), CanDamage(), CapSpecial(), CG_AdjustPositionForMover(), CG_BubbleTrail(), CG_DrawHead(), CG_DrawSelectedPlayerHead(), CG_MachineGunEjectBrass(), CG_MakeExplosion(), CG_OffsetFirstPersonView(), CG_PlasmaTrail(), CG_Player(), CG_PredictPlayerState(), CG_RailTrail(), CG_SetEntitySoundPosition(), CG_ShotgunEjectBrass(), CG_ShotgunFire(), CM_PositionTest(), CM_PositionTestInPatchCollide(), CM_TestBoxInBrush(), CM_TestCapsuleInCapsule(), CM_TraceCapsuleThroughCapsule(), CM_TraceThroughBrush(), CM_TraceThroughPatchCollide(), CM_TraceThroughSphere(), CM_TraceThroughVerticalCylinder(), CPlugInManager::CommitEntityHandleToMap(), ComputeAbsolute(), ComputeScale(), CreateEntityFromName(), CreateFlareSurface(), CreateSurfaceLights(), CreateTerrainSurface(), DeformText(), DoRailDiscs(), DrawLight(), Eclass_hasModel(), Entity_Create(), Entity_Parse(), FaceToBrushPrimitFace(), FillCloudySkySide(), FinishBrush(), G_BounceItem(), G_BounceMissile(), G_Damage(), G_KillBox(), G_MoverPush(), G_TouchTriggers(), G_TryPushingEntity(), G_TryPushingProxMine(), HasModel(), CCamWnd::InitCull(), MakeMeshNormals(), MoverBottomCenter(), MoveSelection(), PaintedModel(), ParseMesh(), Patch_AddRow(), Patch_AdjustColumns(), Patch_AdjustRows(), Patch_DisperseColumns(), Patch_DisperseRows(), Patch_InsertColumn(), Patch_InsertRow(), Patch_MeshNormals(), Patch_Move(), Patch_Thicken(), Patch_UpdateSelected(), PM_GrappleMove(), PM_SlideMove(), Q2_ParseBrush(), R_ComputeFogNum(), R_CreateSurfaceGridMesh(), R_MarkFragments(), R_MirrorPoint(), RB_CalcMoveVertexes(), RB_DrawSun(), RB_SurfaceBeam(), S_AddLoopingSound(), Select_ShiftTexture_BrushPrimit(), SetFaceTexdef(), SetPortalSphere(), SideAsTriFan(), SphereFromBounds(), SpotWouldTelefrag(), SubdivideAreaLight(), SurfaceAsTriFan(), SV_LinkEntity(), Terrain_CalcNormals(), Terrain_Move(), TH_FaceCenter(), TraceLtm(), idSplineList::updateSelection(), VectorMiddle(), VectorRotate(), VL_CreateFakeSurfaceLights(), VL_FloodLight(), VL_GenerateFacetFor3Points(), VL_GenerateFacetFor4Points(), VL_LightmapMatrixFromPoints(), VL_SetPortalSphere(), VL_SphereFromBounds(), VL_StoreLightmap(), VL_SubdivideAreaLight(), VS_CreateFakeSurfaceLights(), VS_FloodLight(), VS_GenerateFacetFor3Points(), VS_GenerateFacetFor4Points(), VS_LightmapMatrixFromPoints(), VS_SetPortalSphere(), VS_SphereFromBounds(), VS_StoreLightmap(), VS_SubdivideAreaLight(), Winding_BaseForPlane(), and WindingCenter().

#define VectorClear  )     {x[0] = x[1] = x[2] = 0;}
 

Definition at line 66 of file l_math.h.

Referenced by __VectorNormalize(), AAS_AlternativeRouteGoals(), AAS_EntityOrigin(), AAS_FaceCenter(), AAS_FixMapBrush(), AAS_GetJumpPadInfo(), AAS_PositionFuncRotatingBrush(), AAS_Reachability_Jump(), AAS_Reachability_Teleport(), AAS_ShowReachability(), AAS_StoreArea(), AAS_TestMovementPrediction(), AAS_TraceClientBBox(), AAS_VectorForBSPEpairKey(), AddBrushBevels(), BG_EvaluateTrajectoryDelta(), BotAimAtEnemy(), BotExportTest(), BotFuncButtonActivateGoal(), BotFuncDoorActivateGoal(), BotGetActivateGoal(), BotImport_BSPModelMinsMaxsOrigin(), BotMatch_CheckPoint(), BotModelMinsMaxs(), BotSetupForMovement(), BotTriggerMultipleActivateGoal(), BrushFromBounds(), CG_BloodPool(), CG_ColorFromString(), CG_DrawBlueFlagHead(), CG_DrawClientScore(), CG_DrawFlagModel(), CG_DrawPlayerAmmoIcon(), CG_DrawPlayerArmorIcon(), CG_DrawPlayerHead(), CG_DrawPlayerItem(), CG_DrawRedFlagHead(), CG_DrawStatusBar(), CG_DrawStatusBarHead(), CG_GetColorForHealth(), CG_HarvesterSkulls(), CG_Item(), CG_ParseAnimationFile(), CG_Particle_Bleed(), CG_Particle_OilParticle(), CG_Particle_OilSlick(), CG_ParticleBloodCloud(), CG_ParticleDust(), CG_ParticleExplosion(), CG_Player(), CG_PlayerAngles(), CG_PlayerFlag(), CG_PredictPlayerState(), CG_ScorePlum(), ClientEndFrame(), CM_AddFacetBevels(), CM_InitBoxHull(), CM_SnapVector(), CM_Trace(), Cmd_SetViewpos_f(), Controls_UpdateModel(), CreateFlareSurface(), CreateTerrainSurface(), DeformText(), EA_ResetInput(), FilterTrace(), G_MissileImpact(), G_SetMovedir(), G_SetOrigin(), LightContributionToPoint(), LoadShaderImage(), MakeBspBrushList(), MakeMeshNormals(), MakeNewTerrain(), NormalizeColor(), CMainFrame::OnSplineTest(), PaintedModel(), Patch_MeshNormals(), PlayerModel_UpdateModel(), PM_DeadMove(), PM_SlideMove(), R_LerpTag(), R_MirrorPoint(), R_MirrorVector(), R_ModelBounds(), R_SetupEntityLightingGrid(), RB_SurfaceAnim(), RB_SurfaceFlare(), ResetMapLoading(), SelectSplitPlaneNum(), SetFacetFilter(), SnapVector(), SP_func_plat(), SP_func_train(), SP_misc_portal_camera(), SP_misc_portal_surface(), SubdivideAreaLight(), SunToPoint(), Terrain_CalcNormals(), TH_FaceCenter(), TH_SnapVector(), Touch_DoorTriggerSpectator(), TraceAgainstFacet(), TraceGrid(), TraceLtm(), UI_DrawOpponent(), UI_DrawPlayerModel(), UI_PlayerAngles(), VectorNormalize(), VectorNormalize2(), VL_FloodLight(), VL_GetFilter(), VL_LightmapMatrixFromPoints(), VL_SubdivideAreaLight(), VS_FloodLight(), VS_GetFilter(), VS_LightmapMatrixFromPoints(), VS_SubdivideAreaLight(), and WriteOriginBrush().

#define VectorCopy a,
 )     {b[0]=a[0];b[1]=a[1];b[2]=a[2];}
 

Definition at line 63 of file l_math.h.

Referenced by AAS_AgainstLadder(), AAS_AlternativeRouteGoals(), AAS_AreaEntityCollision(), AAS_AreaGroundFace(), AAS_AreaInfo(), AAS_AreaVolume(), AAS_BestReachableArea(), AAS_BoxOriginDistanceFromPlane(), AAS_CalculateAreaTravelTimes(), AAS_ClientMovementPrediction(), AAS_ClipToBBox(), AAS_ClosestEdgePoints(), AAS_DrawArrow(), AAS_DrawCross(), AAS_DrawPermanentCross(), AAS_DrawPlaneCross(), AAS_DropToFloor(), AAS_EntityBSPData(), AAS_EntityOrigin(), AAS_EntitySize(), AAS_FacePlane(), AAS_FindBestAreaSplitPlane(), AAS_FindFaceReachabilities(), AAS_GapFace(), AAS_GetAreaRoutingCache(), AAS_GetJumpPadInfo(), AAS_GetPlane(), AAS_GetPortalRoutingCache(), AAS_GetVertex(), AAS_GroundFace(), AAS_InitReachabilityAreas(), AAS_InsideFace(), AAS_JumpReachRunStart(), AAS_LadderSubdivideArea_r(), AAS_NearestHideArea(), AAS_OnGround(), AAS_OptimizeEdge(), AAS_OriginOfMoverWithModelNum(), AAS_PositionFuncRotatingBrush(), AAS_PredictRoute(), AAS_PresenceTypeBoundingBox(), AAS_RandomGoalArea(), AAS_Reachability_Elevator(), AAS_Reachability_EqualFloorHeight(), AAS_Reachability_FuncBobbing(), AAS_Reachability_Grapple(), AAS_Reachability_Jump(), AAS_Reachability_JumpPad(), AAS_Reachability_Ladder(), AAS_Reachability_Step_Barrier_WaterJump_WalkOffLedge(), AAS_Reachability_Swim(), AAS_Reachability_Teleport(), AAS_Reachability_WalkOffLedge(), AAS_Reachability_WeaponJump(), AAS_SetMovedir(), AAS_ShowFace(), AAS_ShowFacePolygon(), AAS_StoreReachability(), AAS_Swimming(), AAS_TraceAreas(), AAS_TraceClientBBox(), AAS_TransformPlane(), AAS_UpdateEntity(), AAS_WeaponJumpZVelocity(), AbsoluteToLocal(), AddEdge(), CPlugInManager::AddFaceToBrushHandle(), AddSkyPolygon(), idSplineList::addToRenderer(), AddWindingPoint(), AddWindingToConvexHull(), AINode_Battle_Chase(), AINode_Battle_Fight(), AINode_Battle_NBG(), AINode_Battle_Retreat(), AINode_Seek_ActivateEntity(), AINode_Seek_LTG(), AINode_Seek_NBG(), AllocateLightmapForSurface(), AllocateLightmaps(), Autosprite2Deform(), AutospriteDeform(), AxializeVector(), AxisCopy(), BaseWindingForPlane(), BeginModel(), BG_EvaluateTrajectory(), BG_EvaluateTrajectoryDelta(), BG_PlayerStateToEntityState(), BG_PlayerStateToEntityStateExtraPolate(), BG_TouchJumpPad(), BotAddAvoidSpot(), BotAddToTarget(), BotAI(), BotAI_Trace(), BotAIBlocked(), BotAimAtEnemy(), BotAirControl(), BotAIStartFrame(), BotAttackMove(), BotCheckAttack(), BotCheckBarrierJump(), BotCheckEvents(), BotChooseLTGItem(), BotChooseNBGItem(), BotClearPath(), BotCreateWayPoint(), BotEntityVisible(), BotExportTest(), BotFindEnemy(), BotFinishTravel_BarrierJump(), BotFinishTravel_FuncBobbing(), BotFinishTravel_Jump(), BotFinishTravel_JumpPad(), BotFinishTravel_Walk(), BotFinishTravel_WalkOffLedge(), BotFinishTravel_WaterJump(), BotFinishTravel_WeaponJump(), BotFuncBobStartEnd(), BotFuncButtonActivateGoal(), BotFuncDoorActivateGoal(), BotFuzzyPointReachabilityArea(), BotGapDistance(), BotGetAirGoal(), BotGetAlternateRouteGoal(), BotGetLevelItemGoal(), BotGetLongTermGoal(), BotGetMapLocationGoal(), BotGetNextCampSpotGoal(), BotGoalForBSPEntity(), BotGoForActivateGoal(), BotImport_BSPModelMinsMaxsOrigin(), BotImport_DebugLineShow(), BotImport_EntityTrace(), BotImport_Trace(), BotInitLevelItems(), BotInitMoveState(), BotInLavaOrSlime(), BotLongTermGoal(), BotMatch_Camp(), BotMatch_HelpAccompany(), BotMatch_LeadTheWay(), BotMoveInGoalArea(), BotMovementViewTarget(), BotMoveToGoal(), BotOnMover(), BotPointAreaNum(), BotPredictVisiblePosition(), BotRandomMove(), BotReachabilityArea(), BotRoamGoal(), BotSetMovedir(), BotSetupForMovement(), BotSwimInDirection(), BotTravel_BarrierJump(), BotTravel_BFGJump(), BotTravel_Crouch(), BotTravel_Elevator(), BotTravel_FuncBobbing(), BotTravel_Grapple(), BotTravel_Jump(), BotTravel_JumpPad(), BotTravel_Ladder(), BotTravel_RocketJump(), BotTravel_Swim(), BotTravel_Teleport(), BotTravel_Walk(), BotTravel_WalkOffLedge(), BotTravel_WaterJump(), BotTriggerMultipleActivateGoal(), BotUpdateEntityItems(), BotValidChatPosition(), BotVoiceChat_Camp(), BotVoiceChat_FollowMe(), BotWalkInDirection(), BoxOriginDistanceFromPlane(), Brush_Create(), Brush_CreatePyramid(), Brush_DrawXY(), Brush_FullClone(), Brush_MakeSided(), Brush_MakeSidedCone(), Brush_MakeSidedSphere(), Brush_Merge(), Brush_MergeList(), Brush_Move(), Brush_MoveVertex(), Brush_Ray(), Brush_RebuildBrush(), Brush_SelectFaceForDragging(), Brush_SideSelect(), Brush_SplitBrushByFace(), BrushVolume(), BuildFaceTree_r(), Bullet_Fire(), ByteToDir(), CalcMuzzlePoint(), CalcMuzzlePointOrigin(), CEpairsWrapper::CalculateRotatedBounds(), CanDamage(), Cap(), CapSpecial(), CG_AddFragment(), CG_AddParticles(), CG_AddParticleToScene(), CG_AddPlayerWeapon(), CG_AddScorePlum(), CG_AddTestModel(), CG_AddViewWeapon(), CG_AdjustPositionForMover(), CG_Beam(), CG_BigExplode(), CG_Bleed(), CG_BloodPool(), CG_BubbleTrail(), CG_CalcMuzzlePoint(), CG_CalculateWeaponPosition(), CG_CalcViewValues(), CG_ClipMoveToEntities(), CG_CopyClientInfoModel(), CG_Draw3DModel(), CG_DrawActive(), CG_General(), CG_GibPlayer(), CG_Grapple(), CG_GrappleTrail(), CG_HasteTrail(), CG_ImpactMark(), CG_Item(), CG_LaunchExplode(), CG_LaunchGib(), CG_LightningBolt(), CG_MachineGunEjectBrass(), CG_MakeExplosion(), CG_Missile(), CG_MissileHitWall(), CG_Mover(), CG_OffsetFirstPersonView(), CG_OffsetThirdPersonView(), CG_Particle_Bleed(), CG_Particle_OilParticle(), CG_Particle_OilSlick(), CG_ParticleBloodCloud(), CG_ParticleBubble(), CG_ParticleBulletDebris(), CG_ParticleDust(), CG_ParticleExplosion(), CG_ParticleImpactSmokePuff(), CG_ParticleMisc(), CG_ParticleSmoke(), CG_ParticleSnow(), CG_ParticleSnowFlurry(), CG_ParticleSparks(), CG_PlasmaTrail(), CG_Player(), CG_PlayerAngles(), CG_PlayerFlag(), CG_PlayerFloatSprite(), CG_PlayerShadow(), CG_PlayerSplash(), CG_Portal(), CG_PositionEntityOnTag(), CG_PositionRotatedEntityOnTag(), CG_RailTrail(), CG_ReflectVelocity(), CG_ResetEntity(), CG_ResetPlayerEntity(), CG_ScanForCrosshairEntity(), CG_ScorePlum(), CG_ShotgunEjectBrass(), CG_SmokePuff(), CG_SpawnEffect(), CG_TeamBase(), CG_TrailItem(), ChopFaceByBrush(), ChopWindingInPlace(), CL_CreateCmd(), ClientSpawn(), ClientThink_real(), ClipSkyPolygon(), ClipWindingEpsilon(), CM_BoxBrushes(), CM_BoxLeafnums(), CM_DrawDebugSurface(), CM_GenerateFacetFor3Points(), CM_GenerateFacetFor4Points(), CM_GeneratePatchCollide(), CM_ModelBounds(), CM_PositionTestInPatchCollide(), CM_RemoveDegenerateColumns(), CM_SetBorderInward(), CM_SubdivideGridColumns(), CM_TempBoxModel(), CM_TestCapsuleInCapsule(), CM_Trace(), CM_TraceCapsuleThroughCapsule(), CM_TracePointThroughPatchCollide(), CM_TraceThroughPatchCollide(), CM_TraceThroughSphere(), CM_TraceThroughVerticalCylinder(), CM_TransformedPointContents(), CM_TransposeGrid(), Cmd_Give_f(), ColorToBytes(), ComputeAbsolute(), ComputeScale(), CopyToBodyQue(), CreateFlareSurface(), CreateNewFloatPlane(), CreateSurfaceLights(), CreateTerrainSurface(), DebugLine(), CPlugInManager::Dispatch(), DoRailDiscs(), Drag_Begin(), Drag_MouseMoved(), Drag_MouseUp(), Drag_Setup(), CXYWnd::DragDelta(), DrawLight(), DrawSurfaceForMesh(), DrawSurfaceForSide(), Drop_Item(), EA_Move(), EA_View(), EmitBrushes(), EmitDrawNode_r(), EmitFaceVertexes(), EmitFlareSurf(), EmitLeaf(), EmitModelSurf(), EmitPatchSurf(), EmitPlanarSurf(), EmitPlanes(), EmitTerrainVerts(), EmitTerrainVerts2(), Entity_Write(), Entity_WriteSelected(), FaceBSP(), FaceToBrushPrimitFace(), FillPatch(), FilterMiscModelSurfIntoTree(), FilterPatchSurfIntoTree(), FindIntermissionPoint(), FindPlaneSeperatingWindings(), FindPoint(), FindSkyBrushes(), FinishBrush(), fire_bfg(), fire_grapple(), fire_grenade(), fire_plasma(), fire_rocket(), FixFaceEdges(), FixSurfaceJunctions(), G_BounceItem(), G_BounceMissile(), G_Damage(), G_MissileImpact(), G_MoverPush(), G_RotatePoint(), G_RunItem(), G_RunMissile(), G_SetMovedir(), G_SetOrigin(), G_SpawnGEntityFromSpawnVars(), G_TempEntity(), G_TryPushingEntity(), G_TryPushingProxMine(), GenerateEndCaps(), GetCachedModel(), CEpairsWrapper::GetEntityOrigin(), HL_CreateBrushesFromBSP(), InitMover(), InsertPointOnEdge(), Item_Model_Paint(), LaunchItem(), LightingAtSample(), LoadPortals(), locateCamera(), Main_MenuDraw(), MakeBspBrushList(), MakeMeshNormals(), MakeNodePortal(), MakeTnode(), Map_LoadFile(), Map_New(), Map_RegionBrush(), Map_RegionTallBrush(), MergeWindings(), MoveClientToIntermission(), MoveSelection(), PaintedModel(), PassageChopWinding(), Patch_AddRow(), Patch_BendHandleTAB(), Patch_BrushToMesh(), Patch_CapTexture(), Patch_EditPatch(), Patch_InsertColumn(), Patch_InsertRow(), Patch_MeshNormals(), Patch_SetBendRotateOrigin(), Patch_Thicken(), Patch_UpdateSelected(), PatchMapDrawSurfs(), player_die(), PM_AirMove(), PM_CorrectAllSolid(), PM_FlyMove(), PM_Friction(), PM_GrappleMove(), PM_GroundTraceMissed(), PM_NoclipMove(), PM_SlideMove(), PM_StepSlideMove(), PM_WalkMove(), PM_WaterMove(), PmoveSingle(), Pointfile_Check(), Pointfile_Next(), Pointfile_Prev(), PointToPolygonFormFactor(), ProcessWorldBrushes(), CXYWnd::ProduceSplitLists(), CXYWnd::ProduceSplits(), ProjectDlightTexture(), Q1_CreateBrushesFromBSP(), Q2_ParseBrush(), QERApp_AddFaceData(), QERApp_GetFaceData(), QERApp_GetFaceInfo(), QERApp_SetFaceData(), QERApp_SetFaceInfo(), R_ChopPolyBehindPlane(), R_CreateSurfaceGridMesh(), R_CullLocalBox(), R_GetPortalOrientations(), R_GridInsertColumn(), R_GridInsertRow(), R_LightForPoint(), R_MarkFragments(), R_ModelBounds(), R_PlaneForSurface(), R_RotateForEntity(), R_RotateForViewer(), R_SetupEntityLighting(), R_SetupEntityLightingGrid(), RB_AddFlare(), RB_CalcDiffuseColor(), RB_DrawSun(), RB_ProjectionShadowDeform(), RB_ShadowTessEnd(), RB_SurfaceFace(), RB_SurfaceLightningBolt(), RB_SurfacePolychain(), RB_SurfaceRailCore(), RB_SurfaceRailRings(), RE_AddDynamicLightToScene(), RE_AddPolyToScene(), RE_RenderScene(), Reached_Train(), RemoveColinearPoints(), RemoveEqualPoints(), ReverseWinding(), RotateAroundDirection(), RotateFaceTexture(), RotatePoint(), RotateSelected(), S_AddLoopingSound(), S_AddRealLoopingSound(), S_Respatialize(), S_StartSound(), S_UpdateEntityPosition(), Select_ApplyMatrix(), Select_CompleteTall(), Select_FlipAxis(), Select_Inside(), Select_PartialTall(), Select_RotateAxis(), Select_ShiftTexture_BrushPrimit(), Select_Touching(), SelectCTFSpawnPoint(), SelectCurvePointByRay(), SelectFaceEdge(), SelectInitialSpawnPoint(), SelectRandomFurthestSpawnPoint(), SelectSpectatorSpawnPoint(), SelectVertex(), SetClientViewAngle(), SetEntityOrigins(), SetMoverState(), SetPortalSphere(), SetRotateOrigin(), SetVectorVariableValue(), CCamWnd::ShiftTexture_BrushPrimit(), ShotgunPellet(), SP_func_bobbing(), SP_func_button(), SP_func_door(), SP_func_pendulum(), SP_func_plat(), SP_func_rotating(), SP_func_static(), SP_misc_model(), SP_misc_portal_surface(), SP_target_push(), SP_target_speaker(), SpawnModelOnVictoryPad(), SpawnPlatTrigger(), SpectatorThink(), SplitNodePortals(), SubdivideAreaLight(), SubdivideFace(), SurfaceAsTriFan(), SV_BuildClientSnapshot(), SV_CreateworldSector(), SV_SetBrushModel(), SV_Trace(), target_laser_think(), Team_GetLocation(), TeleportPlayer(), Terrain_BrushToMesh(), Terrain_CalcVertPos(), Terrain_Duplicate(), Terrain_GetVert(), TestEdge(), TextureAxisFromPlane(), TH_AASFaceVertex(), TH_CreateFloatPlane(), TH_CreateVertex(), Think_SpawnNewDoorTrigger(), TraceGrid(), TraceLine(), TraceLine_r(), TraceLtm(), TryMergeWinding(), UI_DrawPlayer(), UI_PlayerAngles(), UI_PlayerFloatSprite(), UI_PlayerInfo_SetInfo(), UI_PositionEntityOnTag(), UI_PositionRotatedEntityOnTag(), CClipPoint::UpdatePointPtr(), Use_Shooter(), Use_target_push(), VectorRotate(), VectorVariableValue(), VertexLighting(), VisChopWinding(), VL_CalcVisibleLightmapPixelArea(), VL_ChopWinding(), VL_ChopWindingWithBrush(), VL_CreateFakeSurfaceLights(), VL_CreateSkyLights(), VL_FloodDirectedLight(), VL_FloodLight(), VL_GetFilter(), VL_LightSurfaceWithVolume(), VL_LoadPortals(), VL_R_FloodLight(), VL_R_LinkSurface(), VL_R_SubdivideAreaSpotLight(), VL_R_SubdivideDirectedAreaLight(), VL_R_SubdivideRadialAreaLight(), VL_R_WindingAreaOutsideSolid(), VL_SetPortalSphere(), VL_SplitLightVolume(), VL_SplitWinding(), VL_SubdivideAreaLight(), VL_SurfaceRadiosity(), VL_WindingForBrushSide(), VS_CalcVisibleLightmapPixelArea(), VS_ChopWinding(), VS_ChopWindingWithBrush(), VS_CreateFakeSurfaceLights(), VS_CreateSkyLights(), VS_FloodDirectedLight(), VS_FloodLight(), VS_GetFilter(), VS_LightSurfaceWithVolume(), VS_LoadPortals(), VS_R_FloodLight(), VS_R_LinkSurface(), VS_R_SubdivideAreaSpotLight(), VS_R_SubdivideDirectedAreaLight(), VS_R_SubdivideRadialAreaLight(), VS_R_WindingAreaOutsideSolid(), VS_SetPortalSphere(), VS_SplitLightVolume(), VS_SplitWinding(), VS_SubdivideAreaLight(), VS_SurfaceRadiosity(), VS_WindingForBrushSide(), Weapon_HookThink(), Weapon_LightningFire(), weapon_railgun_fire(), Winding_BaseForPlane(), Winding_Clip(), Winding_InsertPoint(), Winding_Reverse(), Winding_SplitEpsilon(), Winding_TryMerge(), Winding_VectorIntersect(), WindingCenter(), WindingFromDrawSurf(), CXYWnd::XY_MouseDown(), CXYWnd::XY_MouseMoved(), CXYWnd::XY_Overlay(), Z_Draw(), and Z_MouseDown().

#define VectorMA v,
s,
b,
 )     ((o)[0]=(v)[0]+(b)[0]*(s),(o)[1]=(v)[1]+(b)[1]*(s),(o)[2]=(v)[2]+(b)[2]*(s))
 

Definition at line 68 of file l_math.h.

Referenced by AAS_ClientMovementPrediction(), AAS_DrawArrow(),