Can you change these to use `Cartesian3.distance`?