Phillip Stephens
bf416af1ed
Merge pull request #20 from lioncash/local
...
CQuaternion: Remove unnecessary local in slerp()
2019-09-21 05:46:07 -07:00
Lioncash
9409825ace
CQuaternion: Remove unnecessary local in slerp()
...
We can turn this assignment into a direct return expression, tidying up
the code a little bit.
2019-09-20 21:01:17 -04:00
Phillip Stephens
949dbff9b8
Merge pull request #19 from lioncash/constexpr
...
CVector2i: Make CVector2f-related constructor non-constexpr
2019-09-06 00:59:47 -07:00
Lioncash
9045766c52
CVector2i: Make CVector2f-related constructor non-constexpr
...
These make use of SIMD accessors, which aren't constexpr.
2019-09-06 02:25:33 -04:00
Phillip Stephens
419c1369ee
Merge pull request #18 from lioncash/color
...
CColor: Correct luminance setting within toHSL()
2019-09-05 19:36:32 -07:00
Lioncash
9f0c1e8218
CColor: Correct luminance setting within toHSL()
...
The function wasn't setting the luminance out reference, this corrects
that.
2019-09-05 21:27:37 -04:00
Lioncash
53c6c115fe
CColor: Use initializer_list version of std::min/std::max where applicable
...
Same behavior, but less verbose.
2019-09-05 21:21:35 -04:00
Phillip Stephens
63ecd31813
Merge pull request #16 from lioncash/rot
...
Global: Remove unused rotr/rotl functions
2019-09-04 19:35:25 -07:00
Phillip Stephens
4d0e4f21ab
Merge pull request #15 from lioncash/noexcept
...
Global: Mark hash_combine_impl() as noexcept
2019-09-04 19:33:47 -07:00
Phillip Stephens
85035bc178
Merge pull request #17 from lioncash/matrix
...
CMatrix4f: Make copy assignment constexpr
2019-09-04 19:32:56 -07:00
Lioncash
29399159e9
CMatrix4f: Make copy assignment constexpr
...
Matches the constexpr copy constructor.
2019-09-04 11:59:53 -04:00
Lioncash
76a7129d80
Global: Remove unused rotr/rotl functions
...
These don't appear to be used by anything, so they can be removed.
2019-09-04 10:37:21 -04:00
Lioncash
3d14be889c
Global: Mark hash_combine_impl() as noexcept
...
This is used with hashes that are declared noexcept, so this should also
be noexcept.
2019-09-04 10:35:27 -04:00
Phillip Stephens
2206497e35
Merge pull request #14 from lioncash/vec
...
CVector2i: Make interface constexpr where applicable
2019-09-04 01:03:42 -07:00
Lioncash
890c1e28e0
CVector2i: Add static assert for enforcing vector size
...
Provides compile-time guarantees about struct layout.
2019-09-04 03:05:28 -04:00
Lioncash
c39186d3ba
CVector2i: Make conversions to float explicit
2019-09-04 02:53:29 -04:00
Lioncash
056515b2d3
CVector2i: Make interface constexpr where applicable
...
These are just manipulating two integral values, so they can be made
constexpr. While we're at it, we can also apply the noexcept specifier.
2019-09-04 02:53:06 -04:00
Lioncash
3083285c79
CVector2i: Implement operator!= in terms of operator==
...
Same behavior, but without duplicated inverted logic.
2019-09-04 02:42:58 -04:00
Lioncash
5f892dda81
CVector2i: Remove use of union and unnamed struct
...
Nothing uses the v data array, so we can remove it entirely. This
removes the use of a compiler extension (anonymous struct), and
simplifies the underlying data within the vector.
2019-09-04 02:41:28 -04:00
Phillip Stephens
35127116f8
Merge pull request #9 from lioncash/docs
...
General: Amend documentation comments
2019-09-03 19:52:56 -07:00
Phillip Stephens
f0a7db2282
Merge pull request #10 from lioncash/using
...
CColor: Use using where applicable
2019-09-03 19:52:07 -07:00
Phillip Stephens
55ead1bada
Merge pull request #11 from lioncash/array
...
CFrustum: Use std::array where applicable
2019-09-03 19:51:16 -07:00
Phillip Stephens
7e737b7e26
Merge pull request #13 from lioncash/rel-angle
...
CRelAngle: Make member functions constexpr where applicable
2019-09-03 19:50:46 -07:00
Phillip Stephens
3d4d304db5
Merge pull request #12 from lioncash/matrix
...
CMatrix3f/CMatrix4f: Use std::array where applicable
2019-09-03 19:50:12 -07: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