Can you make `actualPosition` a `Cartesian4` with `w` set to `1.0`? Then you can avoid the extra copy here.