Commit Graph

3506 Commits

Author SHA1 Message Date
44ef094d04 build: add poisson sample demo 2018-04-19 13:49:55 +10:00
89defb3bc2 geom/sample: add trivial poisson sample generator 2018-04-19 13:27:43 +10:00
f31a344912 kmeans: add naive kmeans impl 2018-04-18 21:48:55 +10:00
dcd789a075 geom/ellipse: add naive covering ellipse impl 2018-04-18 21:48:55 +10:00
eeb5215921 traits: addd array specialisation for is_container 2018-04-18 21:48:55 +10:00
b8253536ea vector: add hughes-moeller make_basis 2018-04-18 21:48:55 +10:00
999ec1c35c quaternion: add matrix multiply convenience method 2018-04-18 21:48:55 +10:00
eb2b85c4f6 point: add query for furthest pair 2018-04-18 21:48:55 +10:00
5ba9da1828 debug: check sanity at end of scope for CHECK_SANITY 2018-04-18 21:43:58 +10:00
fe88708c50 coord: relax restrictions on is_normalised 2018-04-18 21:43:40 +10:00
8a2055abfc WIP ellipse area 2018-04-17 17:11:41 +10:00
06350b53cf geom/ellipse: add sample_surface function 2018-04-17 17:11:29 +10:00
9affc28807 coord: make the pow function actually work... 2018-04-17 17:02:08 +10:00
e0f0e3b19b coord: add product function 2018-04-17 17:01:53 +10:00
1678cb3a69 maths: add rsqrt convenience function 2018-04-17 17:01:29 +10:00
76c809f031 point/vector: homog no longer takes a size parameter 2018-04-17 14:26:23 +10:00
0f9fb9b515 coord: add general store template and 5-element init 2018-04-17 14:25:04 +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
f21297cad5 geom/ellipse: add ray distance tests 2018-04-16 16:00:32 +10:00
1889a76e26 geom/sphere: add glancing ray test 2018-04-16 16:00:32 +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
401c59bc0e tap: add proof-of-concept printf chaining 2018-04-16 16:00:32 +10:00
52fcb847c9 vector: add validator specialisation 2018-04-16 16:00:32 +10:00
4c5bc46ad9 rational: add ostream operator
required for upcoming TAP changes
2018-04-16 16:00:32 +10:00
f0a05e06e2 point: add forwarding assignment operator 2018-04-16 16:00:32 +10:00
e7a76081e0 point: don't directly iterate over data 2018-04-16 16:00:32 +10:00
2eb0b429ef geom/sphere: style 2018-04-16 16:00:32 +10:00
3bd795f5e3 matrix: move sfinae condition into template param list 2018-04-16 16:00:32 +10:00
c4eec456a0 coord/base: remove explicit from scalar constructor
we need to create vectors of zeros pretty often and it's pretty verbose
having to continually use the full type name each time.
2018-04-16 16:00:32 +10:00
05b1c2dd80 geom/ray: add matrix multiply operator 2018-04-16 16:00:32 +10:00
42ab7543a7 debug: add CHECK_FINITE assertion 2018-04-16 16:00:32 +10:00
64ea4fb6d4 quaternion: add docstrings 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
28148dd890 vector: add make_basis function 2018-04-12 12:59:45 +10:00
56fdc7844e geom/frustum: test projection should use radians 2018-04-11 19:28:18 +10:00
1cc4f90b52 vector: add forwarding assignment operator 2018-04-11 19:28:03 +10:00
d7b36b0ee3 affine: add perspective matrix test cases 2018-04-11 18:26:30 +10:00
561925b201 vector: expose base assignment operator 2018-04-11 18:25:51 +10:00
366b1f7879 maths: use our abs implementation for relatively_equal
this simplifies calling logic for integral, floating, and coord types
2018-04-11 18:24:52 +10:00
34a274bc92 maths: move abs higher so more functions can use it 2018-04-11 18:24:34 +10:00
3b5e94e0ea matrix: add relatively_equal overload 2018-04-11 18:24:10 +10:00
2ef759877e matrix: add scalar filling constructor 2018-04-11 18:23:57 +10:00
ea75b102d0 matrix: assert that fov is within 0-360
this will catch more cases where degrees are used where radians area
expected.
2018-04-11 18:23:17 +10:00