Expand description
Rigid 2D alignment (Kabsch) — Indigo / no-RDKit fallback.
Template depiction (fix matched atoms and redraw the rest) stays at the language edge via RDKit. This module only rotates/translates point sets so a caller-supplied correspondence lands on a template frame.
Keep in sync with python/xpict/align.py (_kabsch_2d, _apply_transform).
Structs§
- Rigid
Transform - Rigid transform:
x' = cos·x ∓ sin·y + tx,y' = sin·x ± cos·y + ty(sign of the sin terms flips whenRigidTransform::detis negative).
Functions§
- kabsch_
2d - Kabsch / Procrustes 2D: map
src→dst(paired points). - rigid_
align_ coords - Align
otheratom coords onto a template usingmapping(other→template).