rgrmra / fdf

This project is about representiong a landscape as a 3D object in which all surfaces are outlined in lines.
0 stars 0 forks source link

Imprecision and repeated values. #2

Closed rgrmra closed 10 months ago

rgrmra commented 10 months ago

Those values could be changed by a defined const PI.

https://github.com/rgrmra/fdf/blob/5597f01de3fde9bdabe691c0133bd5e425b23452/srcs/main.c#L76

https://github.com/rgrmra/fdf/blob/5597f01de3fde9bdabe691c0133bd5e425b23452/srcs/main.c#L78

https://github.com/rgrmra/fdf/blob/5597f01de3fde9bdabe691c0133bd5e425b23452/srcs/main.c#L80

https://github.com/rgrmra/fdf/blob/5597f01de3fde9bdabe691c0133bd5e425b23452/srcs/main.c#L82

https://github.com/rgrmra/fdf/blob/5597f01de3fde9bdabe691c0133bd5e425b23452/srcs/main.c#L84

https://github.com/rgrmra/fdf/blob/5597f01de3fde9bdabe691c0133bd5e425b23452/srcs/main.c#L86

rgrmra commented 10 months ago

Fixed! I add a PI constant in header file and changed the values in main to PI, the precision in rotation now is far better!