AlpacaLibrary/Include/Core/Math.hpp

23 lines
641 B
C++
Raw Normal View History

2017-12-25 23:49:48 +00:00
#ifndef MATH_HPP_INCLUDED
#define MATH_HPP_INCLUDED
#include <cstdint>
#include <vector>
#include "Types/Point.hpp"
/** @addtogroup Math
* @{ */
std::int32_t BinomialRandom(std::int32_t Min, std::int32_t Max, double Probability);
std::int32_t UniformRandom(std::int32_t Min, std::int32_t Max);
double UniformRandom();
std::int32_t NormalRandom(std::int32_t Mean, double StandardDeviation);
std::int32_t NormalRandom(std::int32_t Low, std::int32_t High, double PercentageDeviation);
2018-09-03 03:13:53 +00:00
void GetLine(Point A, Point B, std::vector<Point>* Res);
2017-12-25 23:49:48 +00:00
std::vector<Point> ConvexHull(std::vector<Point> Points);
/** @} */
#endif // MATH_HPP_INCLUDED