implemented new geometries: cylinder and (only one for now) Mobius band

This commit is contained in:
Zeno Rogue committed 2018-12-11 22:10:53 +01:00
1 parent 449dd5adaf
commit 460eb19881
21 files changed
+185 -83

No files matched your search

+4
View File
@@ -82,6 +82,10 @@ int gmod(int i, int j) {
return i;
}
int gdiv(int i, int j) {
return (i - gmod(i, j)) / j;
}
ld frac(ld x) {
x -= int(x);
if(x < 0) x++;