Commit Graph

18 Commits

Author SHA1 Message Date
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 a88e50e296 CRelAngle: Make member functions constexpr where applicable
Many of these member functions can be made constexpr, given their
manipulation of a simple internal float.
2019-09-03 16:32:50 -04: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 b854e76dc9 constexpr refactor 2019-02-23 21:15:32 -10:00
Jack Andersen df5e71cde5 CRelAngle visibility fix 2019-01-28 22:27:23 -10:00
Jack Andersen 4524fe2dcf Correct CRelAngle behavior 2018-12-16 17:51:14 -10:00
Jack Andersen e6265e3c81 Make CRelAngle use [0,2pi] range 2018-12-15 20:31:17 -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 f0df551237 Remove pointless condition 2017-12-19 20:06:01 -10:00
Jack Andersen b438e30060 CQuaternion fixes 2017-12-15 14:16:40 -10:00
Jack Andersen 9d40c78f6e Give CRelAngle signed value support 2017-09-16 17:04:23 -10:00
Jack Andersen 83ef557a02 Make CRelAngle conform input angles to full rotation 2017-05-04 08:55:40 -10:00
Phillip Stephens 8ccc52d3b1 CRelAngle division ops 2016-09-01 13:17:33 -07:00
Phillip Stephens 1bba8594d5 Proper CRelAngle implementation 2016-09-01 12:38:16 -07:00
Jack Andersen b15e66a710 Bulk-run of clang-format 2016-07-08 08:42:42 -10:00
Jack Andersen a76d43d5df Humungous refactor 2016-03-04 13:03:26 -10:00