I don't know what you're using this for, but trig is almost never a good approach to anything related to gamedev.
See eg this article for more insight into this: https://iquilezles.org/articles/noacos/
Any
How do these slopes work with the grid?
(don't know why gamedev.net keeps cutting off my replies)
I was saying: any representation of lines/planes which uses an explicit “slope” parameter is likely to be awful to work with. The book “Geometric Tools for Computer Graphics” might be a useful reference.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement