Refactored doublePoint to DoublePoint