Saga
Saga Game Engine
Loading...
Searching...
No Matches
math.cpp File Reference
#include "math.h"
#include "../_Core/logger.h"
#include <cmath>
#include <limits>
Include dependency graph for math.cpp:

Namespaces

namespace  Saga
 
namespace  Saga::Math
 

Functions

std::optional< float > Saga::Math::solvePositiveQuadratic (float a, float b, float c)
 Solve for the minimum t such that quadratic equation at^2 + bt + c = 0 is satisfied.
 
std::vector< float > Saga::Math::solveQuadraticReals (float a, float b, float c)