Skip to documentation
SLOP

tiny.rig.quatFromAxisAngle

Reference 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.

Called byCallsprivate; no linkfun.rig.src.articulated.posemotiontest; no linkfun.rig.src.blendtest: blend endpoints return their po...test; no linkfun.rig.src.skeletontest: forward kinematics composes a c...test; no linkfun.rig.src.transformtest: transform inverse composes to t...test; no linkfun.rig.src.transformtest: transform inverse point reverse...private; no linkfun.rig.src.transformunittiny.linearQuatfromAxisAngletiny.rigquatFromAxisAngle
Static calls · unresolved targets: 0 · external targets: 1.

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

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433