Skip to content

shz_quadratic_roots

Markdown
SHZ_INLINE bool shz_quadratic_roots(float a, float b, float c, float* root1, float* root2) SHZ_NOEXCEPT;

Uses the quadratic formula with the given coefficients to solve for the two roots, returning true if any real roots exist, and false if the roots are only imaginary.

NameTypeDescription
afloat
bfloat
cfloat
root1float *
root2float *

bool