MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / lengthToleranceToString

Function lengthToleranceToString

source/MRViewer/MRRenderDimensions.cpp:26–29  ·  view source on GitHub ↗

`dir == 0` - symmetric, `dir > 0` - positive, `dir < 0` - negative.

Source from the content-addressed store, hash-verified

24}
25// `dir == 0` - symmetric, `dir > 0` - positive, `dir < 0` - negative.
26static std::string lengthToleranceToString( float value, int dir, bool keepTrailingZeroes = false )
27{
28 return valueToString<LengthUnit>( value, { .unitSuffix = false, .style = NumberStyle::normal, .plusSign = dir != 0, .zeroMode = dir >= 0 ? ZeroMode::alwaysPositive : ZeroMode::alwaysNegative, .stripTrailingZeroes = !keepTrailingZeroes } );
29}
30static std::string angleToString( float value )
31{
32 return valueToString<AngleUnit>( value, { .style = NumberStyle::normal, .stripTrailingZeroes = false } );

Callers 1

renderPassMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected