pub fn apply_rotation(p: [Float; 3], rot: [[Float; 3]; 3]) -> [Float; 3]
Apply a 3×3 rotation matrix to a point.