MCPcopy Create free account
hub / github.com/DFHack/dfhack / point_distance

Function point_distance

plugins/siege-engine.cpp:229–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229static int point_distance(df::coord speed)
230{
231 return std::max(abs(speed.x), std::max(abs(speed.y), abs(speed.z)));
232}
233
234inline void normalize(float &x, float &y, float &z)
235{

Callers 4

calc_lineMethod · 0.85
computeMethod · 0.85
findHitsMethod · 0.85
aimAtPointMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected