Commit Graph

39 Commits

Author SHA1 Message Date
Luke Street f3e649716a Revert change to CAABox closestPointAlongVector / furthestPointAlongVector 2022-03-20 16:22:06 -04:00
Phillip Stephens e9c0fe7a6e
Remove athena types 2022-02-27 20:46:10 -08:00
Luke Street 566db657d9 Add NEON support & more constexpr 2020-10-20 02:25:44 -04:00
Lioncash 5520001117 General: Mark file-scope constexpr variables as inline
Allows the compiler to unify all usages of these constants down to a
single address if they're ODR used, rather than creating an individual
copy within each translation unit.

Unfortunately all file-scope variables don't have inline implied for
them by default (only for static class member variables).

Shrinks the size of the emitted binary a little bit.
2020-04-19 03:22:13 -04:00
Lioncash 81f9b4a4ee General: Mark functions as nodiscard where applicable
Given this aims to be a general purpose math library for use in various
other libraries applications for axiodl, we can annotate functions that
return by value or reference with [[nodiscard]] where it's very obvious
that not making use of the return value is a bug.

This allows the compiler to diagnose and emit warnings for these API
misuses at compile-time, preventing silent bugs from occurring.

Any cases where not using the return value is desirable may still be
casted to void in order to silence warnings.
2020-03-04 03:07:54 -05:00
Lioncash dafc850598 zeus: Amend inclusions
Trims out unused headers and ensures the necessary includes are
included.
2019-09-01 04:30:53 -04:00
Jack Andersen 92733a3bb7 Fix some compilation warnings 2019-04-06 19:01:22 -10:00
Jack Andersen 617875531a Implement CAABox::getTri 2019-04-02 18:30:18 -10:00
Jack Andersen b854e76dc9 constexpr refactor 2019-02-23 21:15:32 -10:00
Jack Andersen e32914074a CAABox intersectRadius fixes 2019-02-07 21:56:15 -10:00
Jack Andersen 841c876a66 Add CAABox::projectedPointTest 2019-01-19 20:41:51 -10:00
Jack Andersen e172225845 New code style refactor 2018-12-07 19:23:50 -10:00
Jack Andersen e8dfecbb6e SIMD refactor 2018-12-07 15:16:50 -10:00
Jack Andersen 20603da60d Convert to pragma once 2018-10-06 17:39:40 -10:00
Jack Andersen 8a062453ef Fix CAABox::pointInside 2018-06-23 13:08:10 -10:00
Phillip Stephens d9e88babe2 Fix CAABox::intersects 2018-06-04 12:13:02 -07:00
Jack Andersen 6fbebe0eb7 Fix closest/furthest point functions for CAABox 2018-06-03 15:03:54 -10:00
Jack Andersen 17a501f339 Remove unneeded standard math functions 2018-06-02 20:10:58 -10:00
Jack Andersen 0b8af4b75d GCC compile fix 2017-12-22 19:36:57 -10:00
Jack Andersen 9ab271cd04 Make vector float constructors `explicit` 2017-12-17 16:54:05 -10:00
Jack Andersen f5f38ac827 Various fixes 2017-12-17 13:05:05 -10:00
Jack Andersen 4134568660 Minor literal fix 2017-12-01 18:52:05 -10:00
Jack Andersen bad3038132 Add operator[] asserts 2017-11-23 22:21:18 -10:00
Jack Andersen 07eb5e52ed Fix CAABox::getPoint 2017-06-30 17:23:17 -10:00
Jack Andersen b420a1af93 Make CLineSeg::getEdge const 2017-06-25 15:36:03 -10:00
Jack Andersen 39e240bf25 Add distance between function for AABB 2017-04-08 20:13:47 -10:00
Jack Andersen e08dcffcd1 Add CAABox subscript operator 2017-03-23 19:29:46 -10:00
Jack Andersen 11ba10b557 Add CAABox::intersectionRadius() 2017-03-06 19:34:54 -10:00
Jack Andersen b97ccb7782 Fix ordering of CAABox::split* methods 2017-02-24 21:56:43 -10:00
Phillip Stephens e7a72d02b1 Add CAABox::booleanIntersection 2017-01-20 21:57:34 -08:00
Jack Andersen 7aa5ccf0c7 Invert logic on CAABox::intersects 2016-08-13 09:35:41 -10:00
Phillip Stephens c1d5449124 Add static ReadBoundingBoxBig 2016-07-31 12:24:44 -07:00
Jack Andersen b15e66a710 Bulk-run of clang-format 2016-07-08 08:42:42 -10:00
Phillip Stephens c36927076c Remove m_ from all non-private members 2016-04-29 01:44:58 -07:00
Phillip Stephens ac98ebf428 Various fixes and implementations 2016-04-26 03:36:44 -07:00
Jack Andersen 954978454b Add CAABox::skNullBox 2016-04-16 11:49:09 -10:00
Jack Andersen 69b384e48c Const correctness on some CAABox methods 2016-04-14 11:42:16 -10:00
Jack Andersen 33c357ecc6 ZE_ATHENA_TYPES readers are now explicit-endian 2016-03-13 14:57:31 -10:00
Jack Andersen a76d43d5df Humungous refactor 2016-03-04 13:03:26 -10:00