Commit Graph

16 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 0e516b9f0b CFrustum: Use std::array where applicable
Makes the array stronger-typed. We can also use it to convert a few
loops into algorithms.
2019-09-03 14:29:36 -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 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 5b3ab7ac22 Fix frustum culling 2017-11-27 16:46:40 -10:00
Jack Andersen c5f9137df8 CFrustum fixes 2017-11-21 12:17:16 -10:00
Jack Andersen 2c19667f42 Add invalid state for CFrustum (always passes tests) 2017-07-30 19:17:57 -10:00
Jack Andersen 8702ae7d97 Alternate call for CFrustum plane generation 2017-02-23 22:28:06 -10:00
Phillip Stephens 08d2925689 Add sphere->frustum and point->frustum intersection tests 2016-07-26 13:13:26 -07:00
Jack Andersen bf9404811c Merge commit 'b8c7' 2016-07-20 19:20:12 -10:00
Jack Andersen b8c7ac0387 Add missing include 2016-07-20 19:19:57 -10: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
Jack Andersen a76d43d5df Humungous refactor 2016-03-04 13:03:26 -10:00