Commit Graph

66 Commits

Author SHA1 Message Date
dd369c7c9c geom/plane: add make_plane convenience function 2018-04-20 15:08:06 +10:00
56a73275c1 geom/line: add basic line class 2018-04-20 15:08:06 +10:00
89defb3bc2 geom/sample: add trivial poisson sample generator 2018-04-19 13:27:43 +10:00
dcd789a075 geom/ellipse: add naive covering ellipse impl 2018-04-18 21:48:55 +10:00
06350b53cf geom/ellipse: add sample_surface function 2018-04-17 17:11:29 +10:00
76c809f031 point/vector: homog no longer takes a size parameter 2018-04-17 14:26:23 +10:00
f7a9dc598f geom/ray: forward declare ostream operator
may be required for CHECK_SANITY
2018-04-16 16:44:26 +10:00
675969936e geom/ray: remove useless deduction guide 2018-04-16 16:44:11 +10:00
87d442772c geom/ops: remove point-point distance via sfinae
point-point distance is already defined outside of the geom namespace
2018-04-16 16:00:32 +10:00
a8b3737b8b geom/ray: remove constructors so we have a POD 2018-04-16 16:00:32 +10:00
ce246f8aa2 ellipse: add ray distance query 2018-04-16 16:00:32 +10:00
63fb76c24c geom/ray: ensure direction is normalised after transform 2018-04-16 16:00:35 +10:00
4dcd10243c geom/ray: add validator specialisation 2018-04-16 16:00:32 +10:00
2eb0b429ef geom/sphere: style 2018-04-16 16:00:32 +10:00
05b1c2dd80 geom/ray: add matrix multiply operator 2018-04-16 16:00:32 +10:00
00515078f9 ray: move convenience typedefs directly after type decl 2018-04-16 16:00:32 +10:00
44b3d8d628 ray: add deduction guides 2018-04-16 16:00:32 +10:00
bef0aa4929 sphere: move ray tests into sphere's unit 2018-04-16 16:00:32 +10:00
4e558ce9a9 geom/cylinder: add convenience cylinder3f typedef 2018-04-11 15:10:16 +10:00
40cf869d7e geom/tri: add triangle area formula 2018-04-09 12:49:09 +10:00
a4634a771b g/frustum: simplify aabb intersection test 2018-03-28 20:42:43 +11:00
14e2fc5bd5 geom/ray: use infinity, not nan, to signal no intersection 2018-03-27 16:06:34 +11:00
2d7e3e5d7d build: prefer iosfwd over iostream 2018-03-22 16:11:13 +11:00
0646b1c13b geom: move distance/intersection tests outside classes 2018-03-13 23:27:37 +11:00
b1276519ef geom: add simple frustum class 2018-03-13 22:37:40 +11:00
47efd293c9 geom/plane: use a vector for coefficients
this simplifies usage of the coefficients in other routines
2018-03-13 22:37:09 +11:00
95d13b9fe4 geom/aabb: rename p0,p1 to lo,hi
this makes their meaning more explicit
2018-03-13 15:42:29 +11:00
5bc2cf12d4 maths: use true constexpr values for pi 2018-03-12 23:06:15 +11:00
0e3fa05f05 build: migrate from ipp files to pure hpp files
ipp files weren't a great way of keeping things clean, and IDEs have a
little trouble dealing with the split configuration. this simplifies
debugging a great deal.
2018-02-28 11:49:13 +11:00
0351313c36 Merge branch 'master' into coord 2017-11-23 17:24:11 +11:00
d3f434b523 coord: make template parameters more flexible
The coordinate system was unable to support types that prohibited
redim or retype operations. Additionally, the `tags' type used for
providing named data parameters was unwiedly.

We remove much of the dependance on template template parameters in the
defined operations and instead define these in terms of a template
specialisation of is_coord.

The tag types were replaced with direct specialisation of the `store'
struct by the primary type, and passing this type through use of the
CRTP.
2017-11-22 17:03:00 +11:00
34788756d2 build: don't use './' as an include prefix
GCC produces ODR error when including paths of the form './foo' and
'foo' in the same binary. Rather than managing duplication we just
universally pick the absolute form over the relative form.
2017-11-22 16:49:37 +11:00
2cb5fd7391 geom/sample: prefer inline impl over ipp files 2017-08-29 12:28:54 +10:00
a91df8895d geom: prefer inline implementation over ipp 2017-08-29 12:19:58 +10:00
07d74187c5 geom/aabb: don't write the class name with ostream operators 2017-08-24 17:52:59 +10:00
e573c0bcc6 geom/aabb: style and headers 2017-08-24 17:52:46 +10:00
1277975708 geom/aabb: add brief class description 2017-08-24 17:27:46 +10:00
f53b547a40 geom/aabb: prefer to use vector operations over loops 2017-08-24 17:27:31 +10:00
e82d770d2b geom/aabb: move inclusive point query into header 2017-08-24 17:21:23 +10:00
d47f52b63f geom/aabb: use vector operations for inclusive test 2017-08-24 17:12:17 +10:00
9fe8998476 geom/aabb: rename overlaps as inclusive for consistency 2017-08-24 17:11:48 +10:00
94e02fced4 geom/aabb: make the equality operator a free function 2017-08-24 17:08:37 +10:00
1cea1600d3 geom/aabb: change contract/expand semantics to mirror region 2017-08-24 17:01:16 +10:00
f77cdabaee geom/aabb: dont use mutating function naming convention 2017-08-24 16:47:02 +10:00
cd1bb730f2 geom/aabb: rename AABB to aabb 2017-08-24 16:43:54 +10:00
359702fb86 geom/aabb: remove mutating operators 2017-08-24 16:25:57 +10:00
e134d911e6 geom/ray: reinsert is_normalised check for direction param 2017-08-24 12:27:18 +10:00
1d988608c1 geom/ray: add an (explicitly) default constructor 2017-08-22 17:23:36 +10:00
2576061b26 ray: extract make member function as free function
for consistency with other make_foo functions. to be replaced with
deduction guides in the future.
2017-08-22 15:46:49 +10:00
353cf839d4 use nested namespace declarations 2017-01-05 15:06:49 +11:00