Change to `Cartesian3.dot` or `1.0 + dir.z` with a comment of what the code was.