toDouble method

Position<double> toDouble()

Converts this position's coordinates to double

Implementation

Position<double> toDouble() {
  return Position<double>(x.toDouble(), y.toDouble());
}