MCPcopy Create free account
hub / github.com/cuberite/cuberite / PrintableAbsIntTriplet

Function PrintableAbsIntTriplet

Tools/ProtoProxy/Connection.cpp:144–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142
143
144AString PrintableAbsIntTriplet(int a_X, int a_Y, int a_Z, double a_Divisor = 32)
145{
146 return Printf("<%d, %d, %d> ~ {%.02f, %.02f, %.02f}",
147 a_X, a_Y, a_Z,
148 (double)a_X / a_Divisor, (double)a_Y / a_Divisor, (double)a_Z / a_Divisor
149 );
150}
151
152
153

Calls 1

PrintfFunction · 0.85

Tested by

no test coverage detected