Nano v1.0.0
Simulating Natural Selection
utils.h
Go to the documentation of this file.
1#pragma once
2// clang-format off
3#include "pch_bll.h"
4// clang-format on
5
6#include "simulation_data.h"
7
9{
10double toRadian(double degrees);
11double toDegree(double radians);
12float getDistance(const types::fVec2 &p1, const types::fVec2 &p2);
13float getAngle(const types::fVec2 &p1, const types::fVec2 &p2);
14} // namespace ss::bll::utils
Definition: utils.h:9
float getDistance(const types::fVec2 &p1, const types::fVec2 &p2)
Definition: utils.cpp:26
double toDegree(double radians)
Converts radians to degrees.
Definition: utils.cpp:21
double toRadian(double degrees)
Converts degrees to radians.
Definition: utils.cpp:11
float getAngle(const types::fVec2 &p1, const types::fVec2 &p2)
Definition: utils.cpp:31
Definition: simulation_data.h:17