This PR adds a method to cmeutils.geometry which finds the best fit vector through a set of 3D coordinates. The idea here (for initially straight polymer chains at least), this vector represents the "backbone" of the chain. This is useful for performing translations on polymers built using the polymer builder in mbuild or loaded from SMILES. Usually, these compounds don't have a simple initial alignment. If we know the backbone vector, then we can use the mbuild coordinate transformation methods on the whole chain.
This PR adds a method to
cmeutils.geometry
which finds the best fit vector through a set of 3D coordinates. The idea here (for initially straight polymer chains at least), this vector represents the "backbone" of the chain. This is useful for performing translations on polymers built using the polymer builder in mbuild or loaded from SMILES. Usually, these compounds don't have a simple initial alignment. If we know the backbone vector, then we can use the mbuild coordinate transformation methods on the whole chain.