private int ToBendOffset(float gpxOffset) { var converted = gpxOffset * BendPointPositionFactor; return (int)(converted); }