Comparison with z coordinate included