Commit Graph

14 Commits

Author SHA1 Message Date
94e60d8cd2 quaternion: add conjugation function 2016-09-15 21:41:54 +10:00
c917f264c4 quaternion: fix incorrect factorisation in as_matrix
One of the terms in m[0][0] and m[1][1] was incorrectly negated from an
incomplete factorisation when I transcribed the formula.

Also reintroduces the axis-rotation tests which inadvertantly had zero
magnitudes.
2016-09-14 16:49:26 +10:00
fe625c3441 quaternion: style 2016-08-11 15:01:07 +10:00
606a9c4eb8 coord/ops: use free functions for normalisations 2016-08-11 14:58:46 +10:00
517d7ce4a2 coord/ops: use distinct trait to enable scalar ops 2016-08-11 14:58:04 +10:00
974998cc48 quaternion: update to use coord framework 2016-08-10 17:42:52 +10:00
c4daffc001 build: add forgotten includes 2016-07-28 13:39:27 +10:00
7b083df977 maths: tighten up type requirements for almost_equal
almost_equal only operates on two reals, or two integers (and even then
only on the same signedness).
2015-11-13 17:18:10 +11:00
fdc801628b quaternion: update with more operators 2015-07-13 16:30:54 +10:00
2658b41ea1 relicence under Apache-2.0 2015-04-13 18:05:28 +10:00
439bb19679 coord: move operators out of subclasses 2015-03-06 01:09:58 +11:00
3d3c1a5f2f build: instantiate templates in declared namespace 2015-01-10 19:40:32 +11:00
5956d0421e parameterise point, vector, region, matrix on type 2014-12-15 20:10:56 +11:00
e54b43fd72 Add tiny quaternion stub 2012-07-31 14:40:21 +10:00