Commit Graph

15 Commits

Author SHA1 Message Date
Luke Street ac7d83009d CMatrix4f: Explicit operator==/!= 2022-06-03 01:52:41 -04:00
Luke Street 8e4dfb022a CMatrix3f: Remove normalize from CQuaternion ctor 2022-05-12 12:05:29 -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 29399159e9 CMatrix4f: Make copy assignment constexpr
Matches the constexpr copy constructor.
2019-09-04 11:59:53 -04:00
Lioncash dca23c69d2 CMatrix4f: Use std::array where applicable
Makes for stronger typing and also allows querying the size directly.
2019-09-03 15:06:35 -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 855869b5b1 Windows build fixes 2019-02-23 22:41:50 -10:00
Jack Andersen b854e76dc9 constexpr refactor 2019-02-23 21:15:32 -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 1347e23597 Add clip-space constructor for CVector4f 2018-06-23 15:01:02 -10:00
Jack Andersen b15e66a710 Bulk-run of clang-format 2016-07-08 08:42:42 -10:00
Jack Andersen 3925f8509e alternate matrix transpose code-path for pre-SSE4.1 2016-07-04 12:28:59 -10:00
Jack Andersen a76d43d5df Humungous refactor 2016-03-04 13:03:26 -10:00