stack method

Implementation

StackableValuePoint stack() {
  isStacked = true;

  // todo-1 validate: check if both points y have the same sign or both zero
  fromY = predecessorPoint != null ? predecessorPoint!.toY : 0.0;
  toY = fromY + dataY;

  return this;
}