MCPcopy 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
505double distance_squared(const vec2d &a, const vec2d &b) {
506 vec2d diff = b - a;
507 return length_squared(diff);
508}
509
510struct TrianglePoint {
511 vec2d flat_coord;

Callers 14

MoveMethod · 0.70
PreDrawCameraMethod · 0.70
CalcPatchInstancesMethod · 0.70
GetClosestClustersFunction · 0.70
DrawMethod · 0.70
GetNewTrisFunction · 0.70
calcBoundingSphereMethod · 0.70
lineCheckMethod · 0.70
AlternateHullMethod · 0.70
CheckRayCollisionBoneMethod · 0.70

Calls 1

length_squaredFunction · 0.70

Tested by

no test coverage detected