pub fn align_coords_bytes(
coords_bytes: &[u8],
reference_ca: &[Vec3],
) -> Result<Vec<u8>, CoordsError>Expand description
Align coordinate bytes to match reference CA positions.
Supports both COORDS and ASSEM01 formats — detects automatically. Returns new aligned bytes in the same format as the input.
§Errors
Returns CoordsError if deserialization, alignment, or re-serialization
fails.