Skip to main content

Module vec3

Module vec3 

Source
Expand description

Small fixed-size 3D vector helpers.

These helpers intentionally keep simple, explicit operation order. Callers that need a parity-specific order should use the named variants rather than copy-pasting a local helper.

Enums§

Vec3Error
Error returned by checked 3D vector helpers.

Functions§

add3
Add two finite 3D vectors.
checked_add3
Checked addition for public/fuzz entry points.
cross3
cross3_ref
dot3
dot3_fused_z_yx_ref
dot3_ref
dot3_z_yx_ref
neg3
norm3
norm3_ref
scale3
sub3
unit3
unit3_ref_unchecked