toPosition

inline fun <T, P : Position<P>> T.toPosition(environment: Environment<T, P>): P

Tries to convert a concentration T into a valid position of type P descriptor. Types are bound to the environment types.