Commit Graph

81 Commits

Author SHA1 Message Date
StrangeZak
08dd60ce55 Updated file header 2016-07-21 05:32:52 -07:00
StrangeZak
1c11130d5c Fixed HMM_PI, and disabled warning 4201 on MSVC 2016-07-21 05:30:33 -07:00
Zak Strange
593bd62f1d Merge pull request #13 from Valmar33/master
Various changes
2016-06-07 13:45:33 -07:00
Kyle De'Vir
2386f967b3 Fixed calculations for HMM_Rotate 2016-06-08 05:19:11 +10:00
Kyle De'Vir
de5c1fbb59 Small fix for HMM_Rotate 2016-06-08 03:36:03 +10:00
Kyle De'Vir
2f6b2fd260 HMM_Rotate - normalize vec3 Axis 2016-06-08 03:30:22 +10:00
Kyle De'Vir
b63e6b558f More changes 2016-06-08 03:11:12 +10:00
Kyle De'Vir
8a9bd47985 Revert change to Perspective function 2016-06-08 00:48:13 +10:00
Kyle De'Vir
b9c83866ff Revert "Revert "Revert "Corrected errors in Perspective function"""
This reverts commit 92f5150a01.
2016-06-08 00:45:57 +10:00
Kyle De'Vir
cbcc1e583e Small fixes 2016-06-08 00:43:39 +10:00
Kyle De'Vir
92f5150a01 Revert "Revert "Corrected errors in Perspective function""
This reverts commit 743d03451d.
2016-06-08 00:39:30 +10:00
Kyle De'Vir
743d03451d Revert "Corrected errors in Perspective function"
This reverts commit 136b049106.
2016-06-08 00:38:27 +10:00
Kyle De'Vir
b4eff02912 Trimmed HMM_Rotate a bit further 2016-06-08 00:37:07 +10:00
Kyle De'Vir
46ce164880 Modified HMM_Rotate 2016-06-08 00:08:16 +10:00
Kyle De'Vir
60d035692b Added Wikipedia reference for HMM_FastInverseSquareRoot 2016-06-05 20:19:59 +10:00
Kyle De'Vir
a1f4117d4b Fixed Rotate function and precomputed SinTheta and CosTheta 2016-06-05 19:57:25 +10:00
Kyle De'Vir
693551b11a Fixed Rotate function and precomputed SinTheta and CosTheta 2016-06-05 18:02:55 +10:00
Kyle De'Vir
f8ef00f23d Added f suffix to HMM_PI 2016-06-05 17:36:40 +10:00
Zak Strange
e8eb4f9bfa Merge pull request #12 from Valmar33/master
Fixed Translate function
2016-06-04 19:19:13 -07:00
Kyle De'Vir
c3fdab8ff2 Translate function - removed redundant 1.0f 2016-06-04 20:28:12 +10:00
Kyle De'Vir
6ab8772438 Fixed Translate function again 2016-06-04 20:10:00 +10:00
Kyle De'Vir
7fb1cad53f Fixed Translate function 2016-06-04 20:05:38 +10:00
Kyle De'Vir
9d177e9270 Revert "Fixed Translate function"
This reverts commit fcb5b41000.
2016-06-04 20:02:17 +10:00
Kyle De'Vir
fcb5b41000 Fixed Translate function 2016-06-04 19:58:37 +10:00
Zak Strange
090f325f1f Merge pull request #11 from Valmar33/master
Changed HMM_ToRadians to use HMM_PI32
2016-05-29 14:34:17 -07:00
Kyle De'Vir
b09f4cc38c Changed HMM_ToRadians to use HMM_PI32 2016-05-29 19:43:28 +10:00
Zak Strange
fc9adc8ab7 Merge pull request #10 from Valmar33/revert-8-revert-7-master
Revert "Revert "Added HMM_FastInverseSquareRoot function""
2016-05-28 13:00:38 -07:00
Valmar33
557900d1b2 Revert "Revert "Added HMM_FastInverseSquareRoot function"" 2016-05-29 05:14:57 +10:00
Zak Strange
6c0f340920 Merge pull request #9 from Valmar33/master
Reverts previous HMM_FastInverseSquareRoot revert
2016-05-28 11:53:23 -07:00
Kyle De'Vir
52a05290b2 Reverts previous HMM_FastInverseSquareRoot revert :P
Hlkpf3 on Mārtiņš Možeiko's comment:

i don't really want to be that guy here.. but it's the internet
and i have no free will: the new built-ins are using 'the function',
so they are not faster than 'the function' - they're just quicker at it.
also, many instruction sets don't offer that functionality yet.
and for some it doesn't make any sense. playstations and the nintendo wii,
for instance, were using powerpc - no. the nintendo wii u also doesn't
have it. the "new 3ds" should in theory be the first nintendo-device with
this intrinsic thanks to ARM11 NEON. can someone confirm that? heck,
some MPUs still don't even have floating-point units. i have heard of
a case where the energy-consumption of a sensor-network for
indoor-localisation could be halved by replacing the sqrt they used
for Pythagoras with this neat buddy here.
2016-05-29 04:16:28 +10:00
Zak Strange
f484818d74 Merge pull request #8 from Valmar33/revert-7-master
Revert "Added HMM_FastInverseSquareRoot function"
2016-05-28 11:13:51 -07:00
Kyle De'Vir
1458cb9321 Revert adding HMM_FastInverseSquareRoot
Not useful anymore.
2016-05-29 04:12:36 +10:00
Valmar33
c70c959ece Revert "Added HMM_FastInverseSquareRoot function" 2016-05-29 04:10:22 +10:00
Zak Strange
73afb729d5 Merge pull request #7 from Valmar33/master
Added HMM_FastInverseSquareRoot function
2016-05-28 11:08:44 -07:00
Kyle De'Vir
116e3bb41b HMM_FastInverseSquareRoot indentation adjustment 2016-05-29 04:04:16 +10:00
Kyle De'Vir
6a1e42ed74 Added missing HMM_FastInverseSquareRoot prototype 2016-05-29 03:58:21 +10:00
Kyle De'Vir
004b65f6e3 Added HMM_FastInverseSquareRoot function
With it's original comments. :)

I won't mess too much with the coding style,
because I don't fully understand it.

It works, though.
2016-05-29 03:55:47 +10:00
Zak Strange
ceaf77f9d3 Merge pull request #6 from Valmar33/master
Added HMM_MultiplyMat4ByVec4 function
2016-05-28 10:43:46 -07:00
Kyle De'Vir
9b2c7bf301 Added C++ HMM_MultiplyMat4ByVec4 functionality
Added missing prototypes
2016-05-29 03:39:08 +10:00
Kyle De'Vir
a72ff828a6 Added C++ HMM_MultiplyMat4ByVec4 functionality
Added operator overloaded HMM_MultiplyMat4ByVec4
functionality.
2016-05-29 03:29:29 +10:00
Kyle De'Vir
46fdcfb171 Added HMM_MultiplyMat4ByVec4 function
Multiplies a 4x4 matrix by a 4x4 vector and
returns it.
2016-05-29 02:58:27 +10:00
Zak Strange
7b305009d6 Merge pull request #5 from Valmar33/master
Corrected errors in Perspective function
2016-05-28 09:31:14 -07:00
StrangeZak
6d0034e580 Fixed HMM_PI32 2016-05-29 08:53:02 -07:00
Kyle De'Vir
136b049106 Corrected errors in Perspective function 2016-05-28 23:54:08 +10:00
Zak Strange
fda756706d Merge pull request #4 from ZakStrange/0.2
Release 0.2a
2016-05-21 12:54:15 -07:00
StrangeZak
06ca2942de Merge branch 'master' of https://github.com/ZakStrange/Handmade-Math into 0.2 2016-05-21 12:53:09 -07:00
StrangeZak
a5b55100a5 Prefixed some macros 2016-05-21 12:52:55 -07:00
Zak Strange
6c4f3ff72b Merge pull request #3 from ZakStrange/0.2
0.2 Release
2016-05-20 19:54:22 -07:00
StrangeZak
bde2c4c8b1 Removed testing code from repo 2016-05-20 19:53:17 -07:00
StrangeZak
6a2fac6a00 Prefixed all functions 2016-05-20 19:52:17 -07:00