13inline int FindRoot(
const T inA,
const T inB,
const T inC, T &outX1, T &outX2)
23 outX1 = outX2 = -inC / inB;
28 T det =
Square(inB) - T(4) * inA * inC;
31 T q = (inB +
Sign(inB) * sqrt(det)) / T(-2);
#define JPH_NAMESPACE_END
Definition: Core.h:367
#define JPH_NAMESPACE_BEGIN
Definition: Core.h:361
JPH_NAMESPACE_BEGIN int FindRoot(const T inA, const T inB, const T inC, T &outX1, T &outX2)
Definition: FindRoot.h:13
constexpr T Square(T inV)
Square a value.
Definition: Math.h:52
constexpr T Sign(T inV)
Get the sign of a value.
Definition: Math.h:66