CultMath: rotation algebra (quaternion clamps, inverse, normalize) #184

Merged
eureka merged 7 commits from hands/cultmath-rotation-algebra into main 2026-11-27 21:24:27 +00:00

2026-11-27

Meta Vens
CultMath: clamp_twist's NaN guard is one post-wrap check
All checks were successful
CultMesh portability and performance / ubuntu-latest reactive semantics and leases (pull_request) Successful in 28m39s
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 22:18:29 +01:00

2026-11-10

soul
CultMath: quaternion rotation algebra (mul, rotate, conjugate, inverse, AxisAngle, slerp, swing_twist, clamp_hinge/cone/twist)
Hamilton, xyzw, radians, mul(a, b) applies b first, q == mul(swing, twist). Semantics from cultlib-gaps-map section Q; written from definitions, not Unity.Mathematics.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 14:09:38 +00:00
soul
CultMath: HLSL vector mul(v, v) = dot for float2/3/4, closing the quaternion-conversion overload trap
mul(float4, float4) would otherwise bind to a quaternion product once mul(quaternion, quaternion) lands.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 14:08:19 +00:00