@welldot/utils
getCentralizerDepths
Returns the individual centralizer depths (m) described by a Centralizer entry: from, from + spacing, … up to to.
getCentralizerDepths(
centralizer):number
Returns the individual centralizer depths (m) described by a
Centralizer entry: from, from + spacing, … up to to.
from === to→ a single centralizer at that depth.- No usable
spacing→ only the known endpoints[from, to], since the positions in between are unknown.
Positions are rounded to millimeters to absorb floating-point drift.
Parameters
centralizer
Centralizer
Returns
number