213 Commits

Author SHA1 Message Date
Ben Visness
8e188c4b7c Update CONTRIBUTING.md 2017-03-21 18:14:57 -05:00
Ben Visness
36fbeaeac4 Create CONTRIBUTING.md (#54) 2017-03-21 10:49:56 -07:00
Ben Visness
666f7e3325 Restrict struct warning suppression to clang only (#50)
* Restrict struct warning suppression to clang only

* Update changelist

* Move gcc diagnostic pop inside header section
v1.1.1
2017-01-15 09:50:53 -08:00
Ben Visness
ad3039186d Initial quaternion implementation (#49)
* Various changes, and started work on Quaternions

* Worked on Quaternions (#46)

* Working on quaternions

* Finished operations, onto slerp

* Working on slerp

* Finished slerp implementation, next is NLerp

* Cleaned HandmadeMath.cpp

* Removed gbmath includes

* fixed minor issue.

* Fixed function names

* Fixed DotQuat call

* Did a style check

* Double Style Check

* Triple Style Check

* Fixed all the bullshit I did wrong

* Fixed more bs

* Added new functions

* Finished function implements

* Fixed some compile errors

* Fixed UTF-8 Error

* Added in most operator overrides

* Changed instances of HMM_PI to HMM_Pi32

* Fixed a warning

* Fixed a major issue with quaternion to matrix function where rotations about the y axis caused strange warping.

* Revert "Fixed a warning"

This reverts commit 043decab0d.

* Revert repo

* Fixed Quaternion to Matrix function.

* Fixed some prevalent issues, and now pulls triganometric funcitions from the std instead of implementing them.

* Fixed tab formatting, added in reverse multiplication function with Quaternions

* Removed error suppression cleanup, as it was causing more warnings. . .

* Added documentation

* Changed ATanf2 to ATan2f

* Fixed some typos and added additional documentation (#48)

* Add tests for quaternions

* Remove (very wrong) quaternion division in favor of multiplying by inverse

* Put back newlines at ends of files

* Make tweaks for PR

* Add assigning arithmetic operators for quaternions

* Add NLerp

Just to make Jonathan Blow happy: http://number-none.com/product/Understanding%20Slerp,%20Then%20Not%20Using%20It/

* Rearrange parameters of HMM_Slerp

It now matches HMM_Lerp and HMM_NLerp.

* Update README.md
v1.1
2017-01-04 16:25:12 -08:00
Zak Strange
c89c435e3a Fixed HMM_PowerF v1.0 2016-11-14 20:05:07 -07:00
Zak Strange
aed68cc894 Version 1.0 2016-11-02 14:27:13 -07:00
Zak Strange
fd61daed68 Merge pull request #45 from kevinmoran/master
Suppress GCC anonymous struct warning
2016-09-20 22:35:40 -04:00
Kevin Moran
bebbe211bc Suppress GCC anonymous struct warning 2016-09-21 09:23:07 +10:00
Zak Strange
6b8faf7be2 Merge pull request #44 from StrangeZak/0.7
0.7
2016-09-06 14:22:08 -04:00
Zak Strange
14f7d13cba Updated README.md 2016-09-06 11:22:35 -07:00
Ben Visness
eac00c2aa1 Fix tests for vector ops
Tests for vector ops now test all three kinds of vectors (where
applicable), and test both the C and C++ versions of the functions.
2016-09-06 08:54:35 -05:00
Zak Strange
64830b6bbd 0.7 initial commit 2016-09-05 21:04:30 -07:00
Zak Strange
50938e1adf Merge pull request #40 from miblodelcarpio/master
Introduce HMM_PowerF()
2016-08-30 23:52:48 -04:00
Matt Mascarenhas
7e42f3d7c8 Allow HMM_PowerF to try and compute negative bases 2016-08-31 03:16:13 +01:00
Matt Mascarenhas
fcc3052ed4 Make the PowerF() tests more forgiving 2016-08-31 02:37:37 +01:00
Matt Mascarenhas
5e15bfb6b7 Insert the missing closing brace 2016-08-31 02:28:10 +01:00
Matt Mascarenhas
bb03df3fc6 Merge remote-tracking branch 'upstream/master' 2016-08-31 02:16:51 +01:00
Matt Mascarenhas
774630b7cf Add wrappers for expf and logf 2016-08-31 02:10:39 +01:00
Matt Mascarenhas
5b0e0969c2 Add tests for PowerF() 2016-08-31 01:57:20 +01:00
Matt Mascarenhas
24caf7e8dd Add header for HMM_PowerF() 2016-08-31 01:35:24 +01:00
Zak Strange
59db096948 Merge pull request #42 from StrangeZak/lerp
Add header and test for HMM_Lerp
2016-08-30 20:32:07 -04:00
Zak Strange
d6729c2253 Merge pull request #41 from StrangeZak/transpose-etc
Add HMM_Transpose
2016-08-30 20:31:56 -04:00
Ben Visness
2d729a3b34 Add header and test for HMM_Lerp 2016-08-30 19:19:04 -05:00
Ben Visness
5ddb0ed10d Tweak whitespace 2016-08-30 19:14:31 -05:00
Ben Visness
2ea471b3ce Add HMM_Transpose 2016-08-30 18:53:53 -05:00
Matt Mascarenhas
224d543d79 Introduce HMM_PowerF() 2016-08-31 00:44:14 +01:00
Zak Strange
90198604b8 Merge pull request #39 from StrangeZak/missing-tests
Add back tests for HMM_Power and HMM_Clamp
2016-08-30 17:14:18 -04:00
Ben Visness
722c48ddf8 Add back tests for HMM_Power and HMM_Clamp 2016-08-30 16:11:43 -05:00
Zak Strange
bcc93f635f Merge pull request #37 from StrangeZak/development
Fixed various issues
2016-08-30 17:05:37 -04:00
Ben Visness
c7c801c51a Test overloaded versions of HMM_Dot 2016-08-30 15:56:15 -05:00
Zak Strange
86dfb43c1f Updated README.md 2016-08-30 13:55:14 -07:00
Zak Strange
de08310dbd Fixed HMM_Vec4 2016-08-30 13:46:50 -07:00
Zak Strange
fdef0ae0e1 Added missing tests to hmm_test.cpp 2016-08-30 13:43:17 -07:00
Zak Strange
c2dd9f19a7 Fixed more issues in Unit test 2016-08-30 13:33:15 -07:00
Zak Strange
c147a8bd53 Updated Unit Test 2016-08-30 13:30:52 -07:00
Zak Strange
8578602799 Fixed issues in last commit and added a function overloaded HMM_Dot 2016-08-30 13:24:55 -07:00
Zak Strange
505d1e3fbb Merge pull request #38 from bvisness/travis
Add Travis config
2016-08-30 16:12:31 -04:00
Zak Strange
b087efc561 Added HMM_DotVec2, HMM_DotVec3, and HMM_DotVec4 2016-08-30 12:05:33 -07:00
Ben Visness
4f44c74da4 Initial Travis config 2016-08-30 14:01:17 -05:00
Zak Strange
712e5aa6db Fixed issue #33, #32, #27, #30 2016-08-30 11:58:26 -07:00
Zak Strange
3cecb5ec32 Merge pull request #36 from miblodelcarpio/master
Accelerate HMM_Power() with the squaring technique
2016-08-29 22:03:51 -04:00
Zak Strange
f4fb2a064b Merge pull request #25 from bvisness/unit-tests
Add unit tests
2016-08-29 22:03:44 -04:00
Matt Mascarenhas
cad7efa639 Accelerate HMM_Power() with the squaring technique
Thanks to @mmozeiko for the algorithm
2016-08-30 01:19:47 +01:00
Ben Visness
340f0bddbf Merge remote-tracking branch 'upstream/master' into unit-tests
# Conflicts:
#	README.md
2016-08-29 11:35:29 -05:00
Zak Strange
c58043db84 Merge pull request #26 from bvisness/bug-fixes
Fix issues that came up in testing
2016-08-29 11:27:22 -04:00
Ben Visness
44be431b65 Fix issues that came up in testing
Refs #25
2016-08-28 23:27:24 -05:00
Ben Visness
60cde5116e Correct rotation test to be right-handed 2016-08-28 23:11:40 -05:00
Ben Visness
3b0c8befbb Add tests for projection
(Zak should review)
2016-08-28 23:07:59 -05:00
Zak Strange
c9107ad5de Fixed README.md links 2016-08-28 10:24:35 -07:00
Ben Visness
7f7fc4e0d6 Add tests for transformations 2016-08-28 01:44:05 -05:00