Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WolfireGames/overgrowth
/ distance_squared
Function
distance_squared
Source/Graphics/csg.cpp:505–508 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
503
}
504
505
double distance_squared(const vec2d &a, const vec2d &b) {
506
vec2d diff = b - a;
507
return length_squared(diff);
508
}
509
510
struct TrianglePoint {
511
vec2d flat_coord;
Callers
14
CreateBloodDripNearestPointTransformed
Method · 0.70
Move
Method · 0.70
PreDrawCamera
Method · 0.70
CalcPatchInstances
Method · 0.70
GetClosestClusters
Function · 0.70
Draw
Method · 0.70
GetNewTris
Function · 0.70
calcBoundingSphere
Method · 0.70
lineCheck
Method · 0.70
SortTrianglesBackToFront
Method · 0.70
AlternateHull
Method · 0.70
CheckRayCollisionBone
Method · 0.70
Calls
1
length_squared
Function · 0.70
Tested by
no test coverage detected