Commit Graph

14 Commits

Author SHA1 Message Date
3ad0339474 WIP vector: spherical/cartesian conversion 2017-11-02 18:11:16 +11:00
4bf160934c vector: prefer constexpr functions over static variables 2016-12-12 17:04:39 +11:00
ede9b75bad vector: fix hypot implementation 2016-09-21 22:24:02 +10:00
4544a594c3 vector: add hypot function
calculates the root of the sum of the squares. much like std::hypot, but
of arbitrary dimension.
2016-09-21 17:13:25 +10:00
b809925396 vector: rename UNIT to ONES
unit isn't a normalised vector, so it's misleading to call it a 'unit'
vector
2016-08-15 20:56:10 +10:00
606a9c4eb8 coord/ops: use free functions for normalisations 2016-08-11 14:58:46 +10:00
8cc4c1e82a format: reimplement format rendering
requires literal string arrays, and implements more of the specifier
specification. does not implement 'n' or '$' specifiers. falls back to
snprintf for real arguments.
2016-07-28 13:39:27 +10:00
b1bc54ac8c maths: move remaining operations into util namespace 2015-11-16 11:44:07 +11:00
74d7f9c717 vector: add {to,from}_euler 2015-07-21 02:56:37 +10:00
7396057508 vector: use TAP in tests 2015-07-21 02:55:11 +10:00
c052d7df4b maths: use templated PI and E constants 2015-04-29 17:45:39 +10:00
6f1278767f vector: add is_normalised 2015-04-15 13:52:37 +10:00
bbbbb675a6 test: move tests to TAP output 2015-04-13 16:45:56 +10:00
a300f99b87 vector: add polar_to_cartesian 2015-04-02 15:01:17 +11:00