urt-rs / docs /research /QVM_ROTATE_POINT.md
nmarshall's picture
qvm: point rotation helper
7fd55a1
|
Raw History Blame Contribute Delete
1.35 kB

Complete point rotation helper and alias write ordering

RE-621. Reproduce with python3 scripts/analyze_qvm_rotate_point.py; check with python3 scripts/test_qvm_rotate_point.py. The machine report retains source identity and bounded fixtures.

Actual61093–62064 now executes the complete rotation helper. It selects a perpendicular axis, retains the source squared reciprocal projection, normalizes with supplied sqrt, constructs basis/rotation matrices and applies them to the input point. Native order is sqrt,cos,sin,sin,cos with identical radian arguments for all trig calls. Eighty fixtures cover coordinate/oblique unit axes, two points, five angles and separate/in-place output. Matrices match independent unit-axis Rodrigues geometry within2e−6; exact f32 matrix application checks all final words. In-place output is not generically safe: later components reread earlier overwritten input components. Zero axis stops before projection division with output unchanged. Nonunit axes, axis/output alias, other overlap and native-library bit parity remain outside the validated domain.

No original executable/full QVM/native collision/physics/rendering executes. Native responses and legal input domains are supplied or unverified where stated; full runtime/macOS/Linux Rust/Bevy/Solari gameplay remains open.