Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added physics/ground_to_ground_projectile_motion
Binary file not shown.
3 changes: 2 additions & 1 deletion physics/ground_to_ground_projectile_motion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
*/

#include <cassert> /// for assert()
#define _USE_MATH_DEFINES
#include <cmath> /// for std::pow(), std::sin(), and std::cos()
#include <iostream> /// for IO operations

Expand All @@ -30,7 +31,7 @@ namespace ground_to_ground_projectile_motion {
* @param PI The definition of the constant PI
* @returns Angle in degrees
*/
double degrees_to_radians(double radian, double PI = 3.14) {
double degrees_to_radians(double radian, double PI = M_PI) {
return (radian * (PI / 180));
}

Expand Down
Loading