Get/set generalized positions depends on the types