Skip to content

Commit 3fb0baa

Browse files
author
[Divyansh Jain]
committed
changed PI variable value from 3.14 to M_PI
1 parent f789e3b commit 3fb0baa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

physics/ground_to_ground_projectile_motion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace ground_to_ground_projectile_motion {
3030
* @param PI The definition of the constant PI
3131
* @returns Angle in degrees
3232
*/
33-
double degrees_to_radians(double radian, double PI = 3.14) {
33+
double degrees_to_radians(double radian, double PI = M_PI) {
3434
return (radian * (PI / 180));
3535
}
3636

0 commit comments

Comments
 (0)