Following code snippet replicates issue: Point(10.0 to 0.0).distanceTo(Point(15.0 to 0.0)) Value of above expression is NaN