MCPcopy Create free account
hub / github.com/XRay3D/GERBER_X3 / gridStep

Method gridStep

static_libs/common/settings.cpp:58–58  ·  view source on GitHub ↗

Other*/

Source from the content-addressed store, hash-verified

56
57/*Other*/
58double AppSettings::gridStep(double scale) { return m_inch ? pow(10.0, ceil(log10(30 / scale))) * .254 : pow(10.0, ceil(log10(8.0 / scale))); }
59bool AppSettings::inch() { return m_inch; }
60void AppSettings::setInch(bool val) { m_inch = val; }
61

Callers 3

paintEventMethod · 0.80
mappedPosMethod · 0.80
scene.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected