shz_quadratic_roots
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.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
a | float | |
b | float | |
c | float | |
root1 | float * | |
root2 | float * |
Returns
Section titled “Returns”bool
Availability
Section titled “Availability”- C++ equivalent:
shz::quadratic_roots - Type-generic form: none
- Back-ends: SH4: shared C implementation · SW: portable C · SPU: shared C implementation
- Defined in:
sh4zam/shz_scalar.h:252 - Module: Scalar, section "Miscellaneous"