Skip to content

shz_vec4_reject_safe

Markdown
SHZ_INLINE shz_vec4_t shz_vec4_reject_safe(shz_vec4_t vec, shz_vec4_t onto) SHZ_NOEXCEPT;

Returns the rejection of the given 4D vector, vec, onto another 4D vector, onto.

NameTypeDescription
vecshz_vec4_t
ontoshz_vec4_t

shz_vec4_t

  • This routine safely returns vec unchanged when onto has a magnitude of 0.0f.
  • _safe: Guards degenerate input (zero-length vectors, zero denominators) at a small cost. (Naming and Suffixes)