e364b0855f
coord/store: avoid unused variable on non-sse alignment
2017-01-05 19:50:27 +11:00
abedda1e5d
coord/store: abstract SIMD alignment tests
2017-01-05 16:46:01 +11:00
353cf839d4
use nested namespace declarations
2017-01-05 15:06:49 +11:00
3dd80be05a
coord: use self-dot-product for norm2
2016-12-21 20:23:43 +11:00
919c635f63
coord/base: assert we are using arithmetic types
2016-10-25 19:57:37 +11:00
e96ef7af32
quaternion: move out of coord infrastructure
2016-10-17 22:30:16 +11:00
2c6011394f
coord/ops: assert when normalising zero coords
2016-10-12 22:58:13 +11:00
b7d141322c
coord/ops: add logical or, and logical and for bools
2016-09-23 13:39:13 +10:00
109d47e971
coord/ops: generalise vectors hypot function
2016-09-23 13:27:44 +10:00
ff86357b83
coord/ops: use full types for is_coord
...
rather than passing the template class we pass the fully specified
template; ie point<3,float> rather than point.
this makes it dramatically easier to use is_coord in foreign code at the
cost of making the library code slightly more verbose. we no longer have
to obtain a typedef for the root coord class somehow.
2016-09-22 16:20:32 +10:00
7db82e4b22
coord/base: add cbegin and cend members
2016-09-21 22:23:20 +10:00
2b946510e5
coord/ops: correct last iterators for util::all and util::any
2016-09-21 22:22:52 +10:00
ff7ce2f1ef
coord/ops: mod style
2016-09-14 17:42:11 +10:00
fa21e52ee0
coord/ops: add scalar cos/sin
2016-09-14 17:41:59 +10:00
ab89286d5c
coord/ops: add scalar mod
2016-09-14 17:38:30 +10:00
f6ceb5cdee
coord/ops: add element sum overload
2016-08-15 20:56:10 +10:00
1f3b44a20e
vector: move vector::is_zero to coord::almost_zero
2016-08-11 16:33:32 +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
650f5c05e6
coord/ops: rename traits to result
2016-08-11 14:23:32 +10:00
efb2657798
coord/fwd: use fwd header for ops
2016-08-11 14:22:53 +10:00
dfdd9421cd
Revert "coord/base: remove front/back methods"
...
This reverts commit 0b811e636e
.
2016-08-10 18:26:40 +10:00
974998cc48
quaternion: update to use coord framework
2016-08-10 17:42:52 +10:00
0b811e636e
coord/base: remove front/back methods
2016-08-10 17:33:58 +10:00
6ddff9dfde
coord/base: use std::fill for scalar constructor
2016-08-10 17:33:45 +10:00
fe8bbd1b61
coord: add forward declarations
2016-07-28 13:45:44 +10:00
d51cfe7a34
stream: remove unneeded numeric class
...
explicitly cast before passing to a stream routine if you need it.
2016-06-29 17:52:26 +10:00
3802de5ba3
coord/ops: disable scalar ops for non-arithmetic types
2016-05-12 18:22:55 +10:00
c2310d5d50
build: explicitly allow anonymous structs
2016-05-12 18:06:12 +10:00
efa52c60e9
build: remove unnecessary pedantic checks
2016-04-28 16:09:14 +10:00
3e46f18e5a
coord/base: style
2016-04-28 16:06:48 +10:00
039113b661
coord/store: enforce 16 byte alignment for arity 4
2016-03-14 22:31:50 +11:00
12b526dff7
coord/ops: ensure coord funcs only receive coords
2016-03-14 19:54:25 +11:00
0cfcd7b439
coord/ops: make operations constexpr where possible
2016-03-14 19:01:59 +11:00
27c7108c6d
coord/ops: remove duplicate unary negation
2016-03-14 18:57:07 +11:00
8035cbf46f
coord/ops: return the computed value in unary ops
2016-03-14 18:56:36 +11:00
809e7b0421
iostream: use consistent ostream format
2016-03-11 13:01:57 +11:00
7f4cf49931
iterator: use infix_iterator for coord ostream
2016-03-11 12:48:19 +11:00
2ca4a7e291
coord/ops: enable iff types are coords
2015-11-04 23:22:49 +11:00
23fff4a65a
coord/ops: expand dot product to accept arrays
2015-11-04 17:10:16 +11:00
3991848726
coord: add vector relational operators
2015-10-20 12:37:08 +11:00
60f16cdc4a
WIP coord: clean up operation templates
2015-10-19 17:06:19 +11:00
b824691541
coord: add front/back methods
2015-10-19 16:23:49 +11:00
634f2af9cc
coord/ops: don't use multiplication for negation
2015-10-19 12:06:03 +11:00
5ed95ec952
coord/ops: use common_type for results
2015-10-19 12:06:03 +11:00
f6933fb87d
coord/base: c++14 style
2015-10-19 12:01:29 +11:00
3e884113fd
coord: add elementwise pow function
2015-10-12 23:56:41 +11:00
29c6c50fda
coord/base: don't use std::fill in constexpr
2015-10-06 15:24:31 +11:00
50c1088918
coord/ops: add vector floor function
2015-09-29 18:06:52 +10:00
5c72953653
coord: remove inadvertant warning disabling
2015-09-21 15:40:36 +10:00
905f4de303
coord: make size accessor static
...
static members work on expressions in c++11 now.
2015-09-21 15:35:18 +10:00
b66a3ba46f
coord: make size method constexpr
2015-09-15 21:05:37 +10:00
c4f773f129
coord: use explicit constructors consistently
2015-09-09 18:45:23 +10:00
0db7872c1b
coord: use almost_equal for equality
2015-07-21 01:39:14 +10:00
d11bdb79b0
coord: add modulus operators
2015-07-21 01:39:01 +10:00
950fed7d81
coord: add constexpr constructors
2015-07-21 01:38:36 +10:00
8e0e65e2b8
coord: add elementwise abs function
2015-05-29 15:51:08 +10:00
b96ad81d32
coord: allow multi-type scalar-vector ops
2015-05-28 10:18:32 +10:00
b67bb283d1
coord: add scalar gte, lte
2015-05-26 16:25:41 +10:00
2658b41ea1
relicence under Apache-2.0
2015-04-13 18:05:28 +10:00
e7fba43935
colour: add hsv field names
2015-04-09 21:50:22 +10:00
532dc415a4
colour: allow arbitrary colour dimensions
2015-04-09 18:00:40 +10:00
bd88832df3
coord: move cast/redim operations to coord
2015-04-09 17:58:47 +10:00
5428c93b9a
coord: pass client class to coord base
...
allows common typesafe implementation of cast and redim
2015-04-09 17:47:35 +10:00
e1b03e0735
coord: express negate with scalar value multiply
...
we don't have universal scalar reference operations implemented, this
avoids a temporary and removes compile errors
2015-04-08 14:53:55 +10:00
14e5f4ca2d
coord/ops: enable vector-point element operations
2015-04-07 17:01:50 +10:00
5d9c2b1696
c/base: add convenience type conversion operator
2015-03-11 22:58:14 +11:00
0ba8b414b4
coord/ops: comments
2015-03-07 03:18:32 +11:00
3f07f6edf7
coord/ops: negation operator
2015-03-07 03:18:13 +11:00
869125e308
coord/ops: correct order of operators scalar ops
2015-03-07 03:17:22 +11:00
e69d970e22
coord/ops: add max/min vector and element
2015-03-06 17:52:25 +11:00
b96ccef8ba
coord/ops: use relative include paths
...
assists when building external projects
2015-03-06 02:01:50 +11:00
9d58f835a9
coord/ops: consistency in forward declarations
2015-03-06 02:01:32 +11:00
e461654de8
coord: split coord header into components
2015-03-06 01:46:01 +11:00