Saga
Saga Game Engine
Loading...
Searching...
No Matches
math.h
Go to the documentation of this file.
1#pragma once
2
3#include <optional>
4#include <vector>
5
6namespace Saga::Math {
16 std::optional<float> solvePositiveQuadratic(float a, float b, float c);
17
26 std::vector<float> solveQuadraticReals(float a, float b, float c);
27}
Definition: math.cpp:6
std::vector< float > solveQuadraticReals(float a, float b, float c)
Definition: math.cpp:19
std::optional< float > solvePositiveQuadratic(float a, float b, float c)
Solve for the minimum t such that quadratic equation at^2 + bt + c = 0 is satisfied.
Definition: math.cpp:7