tiny.rig.quatFromAxisAngle
Defined in tiny.rig.
The unit rotation by angle about axis, or the identity for a negligible angle or an axis without direction.
Source
Source: fun/rig/src/transform.zig:69
zig
/// The unit rotation by `angle` about `axis`, or the identity for a/// negligible angle or an axis without direction.pub fn quatFromAxisAngle(axis: Vec3, angle: f32) Quat { if (@abs(angle) <= 1e-8) return Quat.identity; const unit_axis = axis.normalized(axis_min_length) orelse return Quat.identity; return unit(Quat.fromAxisAngle(unit_axis, angle));}Source: fun/rig/src/root.zig:28
zig
pub const quatFromAxisAngle = transform.quatFromAxisAngle;Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |