Commit Graph

146 Commits

Author SHA1 Message Date
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
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
Kyle De'Vir
b09f4cc38c Changed HMM_ToRadians to use HMM_PI32 2016-05-29 19:43:28 +10: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
Kyle De'Vir
1458cb9321 Revert adding HMM_FastInverseSquareRoot
Not useful anymore.
2016-05-29 04:12:36 +10: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
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
Kyle De'Vir
136b049106 Corrected errors in Perspective function 2016-05-28 23:54:08 +10:00
StrangeZak
a5b55100a5 Prefixed some macros 2016-05-21 12:52:55 -07:00
StrangeZak
6a2fac6a00 Prefixed all functions 2016-05-20 19:52:17 -07:00
StrangeZak
c9c60ba25b Cleaned up function declarations, and fixed C compliance. 2016-05-20 12:01:31 -07:00
Zak Strange
87360e6adc Fixed formating 2016-04-02 21:14:29 -07:00
Zak Strange
52f373cbfe Fixed some bugs 2016-04-02 21:10:31 -07:00
Emil Lauridsen
4bb373ba35 Additional fixes.
Translate: Swapped indices because we're column-major.
Rotate: Ditto, and corrected calculation of 1,1 2,2 and 3,3.
MultiplyMat4: Like translate
2016-03-25 18:29:56 +01:00
Emil Lauridsen
4afed801d0 Fix up Orthographic 2016-03-25 17:39:51 +01:00
Zak Strange
607a3d27de Updated CreditS 2016-03-24 21:38:22 -07:00
Zak Strange
2b44bdc9d5 Added missing component on Perspective matrix 2016-03-24 21:05:43 -07:00
Zak Strange
4256034f7f Changed Perspective again 2016-03-24 15:39:50 -07:00
Zak Strange
20ff6d214e Fixed Perspective 2016-03-24 15:25:29 -07:00
Zak Strange
dfe3df4ee4 Changed Perspective matrix 2016-03-24 15:15:28 -07:00
Zak Strange
6063dfafeb Fixed spelling error and changed LookAt 2016-03-24 14:54:44 -07:00
Zak Strange
2a977c6243 Fixed LookAt 2016-03-24 14:19:36 -07:00
Zak Strange
d40b9484b8 Changed shit 2016-03-24 10:14:17 -07:00
Zak Strange
2d4520fda6 Added LookAt for matrix 2016-03-23 16:54:10 -07:00
Zak Strange
77b4b04d13 Fixed spelling error 2016-03-18 20:35:50 -07:00
Zak Strange
2f6c37bcc6 Added normalize 2016-03-14 14:54:56 -07:00
Zak Strange
19487d23b8 Fixed Lerp, added Clamp 2016-03-14 14:31:59 -07:00
Zak Strange
388f66c1af Added Lerp 2016-03-14 14:26:32 -07:00
Zak Strange
41d2f2e5b6 Cleaned up the code, fixed C compliance, and added operator overloading for multiplying matrix's 2016-03-14 14:09:55 -07:00
Zak Strange
3166c36452 Added Mat4, Perpective, Rotate, Scale, and Traslate 2016-03-13 21:29:59 -07:00
Zak Strange
f111a24417 Added function prototypes 2016-03-13 15:24:35 -07:00
Zak Strange
a2700e4a22 Added operator overloading 2016-03-13 15:19:26 -07:00
Zak Strange
f62ec8a09a Added power function and function overloaded functions 2016-03-13 14:44:28 -07:00
Zak Strange
e5ba943f38 Added documentation and fixed HINLINE spelling error. 2016-03-12 10:51:03 -07:00
=
8ee6f8a20d Addition, Subtraction, Multiplication, and division for Vectors 2016-01-22 20:05:47 -07:00
=
81752787dd I forgot a semi-colon 2016-01-22 19:28:10 -07:00
=
44e573da16 Setup Vec2, Vec3, Vec4 and their initialization functions 2016-01-19 17:41:23 -07:00