Commit graph

32 commits

Author SHA1 Message Date
767eb786d5 Add a helper for triangulating convex polygons 2020-09-30 07:21:40 +03:00
fb9134993c Add a file for general geometric mesh utilities 2020-09-29 19:18:39 +03:00
ebcd2906a8 Move deg, rad to math.hpp 2020-09-29 19:18:39 +03:00
2b57e3e696 Add generic affine transform class & unify transform interfaces 2020-09-29 19:18:35 +03:00
98ff134d3a Add point-box distance 2020-09-28 11:03:30 +03:00
9a47bddb73 Add math utilities header & sqr function 2020-09-28 11:03:19 +03:00
e7e419a931 Add arbitrary-matrix camera 2020-09-27 11:59:57 +03:00
6c4ed1b61d Fix gram_schmidt recursive base ODR 2020-09-27 11:59:33 +03:00
81cafa6f05 Add ray-simplex intersection 2020-09-26 23:23:40 +03:00
5d44efa2ea Add geom::point::zero() 2020-09-24 12:44:36 +03:00
1571e9032b Add ray-box intersection 2020-09-23 22:25:39 +03:00
fb0d926a73 Fix geom::intersection template argument deduction issues 2020-09-23 22:25:28 +03:00
cf99917272 Add geom::interval::full 2020-09-23 22:24:43 +03:00
4410597e44 Add geom::ray primitive 2020-09-23 22:23:37 +03:00
2dd9ebae76 Add camera::direction() 2020-09-23 21:56:25 +03:00
d2d88ba7c5 Add 'psemek-' prefix to all psemek targets 2020-09-21 09:04:40 +03:00
67ad584d48 Add interval::center & box::center 2020-09-20 19:43:41 +03:00
c87a8a5c71 Add a CMake option for robust geom predicates 2020-09-14 15:30:09 +03:00
d250becf43 Fix missing includes 2020-09-14 11:32:33 +03:00
3444ac9984 Support setting perspective camera fov by aspect ratio 2020-09-13 16:39:11 +03:00
66f9878dd1 Add deg<->rag conversions 2020-09-13 16:38:50 +03:00
0453d4e15d Be more permissive with vector & point constructor argument types & array index types 2020-09-13 12:49:34 +03:00
7697adcc68 Add volume & normal of a simplex 2020-09-13 10:35:16 +03:00
007fd12240 Rename cross(v,v) to ort(v...), cross left as convenience 2020-09-13 10:34:50 +03:00
6e2277ded3 Change pi constant type to long double 2020-09-10 18:14:52 +03:00
22726bc565 Fix spherical camera elevation angle 2020-08-31 10:20:19 +03:00
cf6a8e98eb Change spherical camera: now X is right, Y is forward, Z is up 2020-08-31 09:47:30 +03:00
44883e0226 Make segment & triangle aliases instead of subclasses 2020-08-30 21:19:16 +03:00
ebe8ecfe55 Add a file with math constants 2020-08-30 08:47:02 +03:00
4d6f5d6f85 Add orthographic & window cameras 2020-08-30 08:46:42 +03:00
6225f89f88 Uniformize code style & do a few code rearrangements 2020-08-27 16:49:46 +03:00
549f2ada41 Add util, geom, cg, pcg & gfx libs 2020-08-27 13:36:16 +03:00