MCPcopy Create free account
hub / github.com/Kitware/VTK / decodeMultiplier

Function decodeMultiplier

IO/SegY/vtkSegYReaderInternal.cxx:28–32  ·  view source on GitHub ↗

this->Traces start after 3200 + 400 file header

Source from the content-addressed store, hash-verified

26{
27const int FIRST_TRACE_START_POS = 3600; // this->Traces start after 3200 + 400 file header
28double decodeMultiplier(short multiplier)
29{
30 // NOLINTNEXTLINE(readability-avoid-nested-conditional-operator)
31 return (multiplier < 0) ? (-1.0 / multiplier) : (multiplier > 0 ? multiplier : 1.0);
32}
33}
34
35//------------------------------------------------------------------------------

Callers 2

Is3DComputeParametersMethod · 0.85
ExportDataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected