pub fn validate_spatial_state( state: &SpatialState, constraints: &SpatialConstraints, ) -> Result<(), SpatialError>