Arithmetic centroid of selected reference vertices, in reference-frame input units.
Unit x,y,z,w quaternion mapping centered reference directions to target directions; identity for collapsed covariance.
Arithmetic centroid of selected target vertices, in target-frame input units.
Fresh mutable quaternion and centroid records. Transform p as rotation * (p - referenceCenter) + targetCenter; centered application avoids cancellation between large absolute coordinates.