Require result parameter: Cartesian2, Cartesian3, Cartesian4

For #1161 
This also needs to check that `result` is defined.