toPosition

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

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