boromisp
ed12134f34
Fixed the original ray-sphere intersection
...
Changed the original analytic method to a geometrical.
The errors in the original intersection calculation:
The function has a sphere center parameter, but ignores it and assumes
that the sphere is in the origo.
It calculates the length of the ray direction vector, but later on uses
this vector as a unit vector.
The position calculation is simply wrong. It multiplies the direction
vector with the radius of the sphere instead of the calculated
intersection distance.
The quadratic equation solving could be improved too:
There should be an early exit for negative discriminant.
The naive implementation sould be changed to a floating-point
specialized one.
2012-11-11 23:41:11 +01:00
boromisp
3a3c1fd8e8
Added new ray-sphere intersection
...
This version uses a geometric method (usually faster) and doesn't
calculate the intersection position and normal, only the distance.
2012-11-11 23:09:12 +01:00
Christophe Riccio
9d9a625493
Renamed equalEpsilon function into epsilonEqual and added tests
2012-11-05 19:39:22 +01:00
Christophe Riccio
1dda2390e5
Fixed warnings on MacOS X
2012-11-04 14:26:54 +01:00
Christophe Riccio
b1ecabdd28
Fixed GTX_matrix_interpolation, issue #9
2012-09-19 19:14:45 +02:00
Christophe Riccio
c2eea6da26
Removed floor_log2, comment that isnan and isinf are not working on MinGW
2012-09-18 01:52:16 +02:00
Christophe Riccio
a2ba0ea86f
Merge branch '0.9.3' of https://github.com/Groovounet/glm into 0.9.4
2012-09-12 15:59:17 +02:00
Joonas Sarajärvi
da530ac46e
Fix integer version of glm::log2 for GCC
...
This pretty much reverts the fix done in commit
1ed0e3865b5de0ee993b064b37749bc85e928d7f
This temporarily breaks log2 for GCC in cases where GLM_FORCE_PURE
is not defined. The workaround introduced in commit
1ed0e3865b5de0ee993b064b37749bc85e928d7f seems to rely
on getting invalid results from the nlz function.
Broken nlz is caused by a broken findMSB function for GCC.
A fix for the findMSB function should be available in a nearby
separate commit.
2012-09-12 01:51:02 +03:00
Christophe Riccio
2f3dd90aca
Merge branch '0.9.3' into 0.9.4
2012-09-05 23:45:12 +02:00
Christophe Riccio
09a8d5a621
Fixed warning from #123 comments
2012-07-01 11:32:55 +01:00
Christophe Riccio
40622b0e79
Fixed merge
2012-05-08 21:01:40 +01:00
Christophe Riccio
77eabf703a
Merge branch '0.9.3' into 0.9.4
2012-05-02 13:07:06 +01:00
Christophe Riccio
a5fdf3c1bf
Fixed ticket #182 , isnan and isinf conflicts
2012-04-30 22:23:08 +01:00
Christophe Riccio
958bb6f6ca
Fixed GTX_compatibility on Android r7
2012-04-19 11:29:57 +01:00
Christophe Riccio
ac768ea12b
Added an alias (slerp) for mix with quaternions
2012-04-14 15:33:44 +01:00
Christophe Riccio
874a675bb9
Fixed nextafter for float on Intel compiler
2012-04-14 14:45:27 +01:00
Christophe Riccio
6a4677c30e
Promoted GTX_epsilon, GTX_ulp, fixed build, removed deprecation warning at build time
2012-04-07 02:30:26 +01:00
Christophe Riccio
b2f0f4d3f9
Move noise, random and ulp test to GTC tests
2012-04-07 00:36:15 +01:00
Christophe Riccio
cb017c5bca
Promoted angle axis interaction with quaternion
2012-04-06 21:04:46 +01:00
Christophe Riccio
5454f224b8
Fixed merge
2012-04-06 16:38:28 +01:00
Christophe Riccio
7373e7b8da
Promote eulerAngles to GTC quaternion extension
2012-04-01 18:19:09 +01:00
Christophe Riccio
81efafa976
Merge branch '0.9.3' into 0.9.4
2012-03-16 21:55:54 +00:00
Christophe Riccio
8537e33b8d
Fixed ticket 169, parameter not used for mat division
2012-02-19 22:43:40 +00:00
Christophe Riccio
f267b6ea18
Promote GTC_constants
2012-01-25 18:54:28 +00:00
Christophe Riccio
fb3a41995a
Ticket #137 , added constexpr support
2012-01-25 18:36:04 +00:00
Christophe Riccio
100b2202dd
Added GLM_FORCE_RADIANS
2012-01-25 16:37:09 +00:00
Christophe Riccio
64e06fa57a
Merge branch '0.9.3' into 0.9.4
2012-01-24 12:07:52 +00:00
Christophe Riccio
89fcd31730
Fixed typo #166
2012-01-23 10:07:37 +00:00
Christophe Riccio
b19f609f51
Merge branch '0.9.3' into 0.9.4
2012-01-11 20:38:04 +00:00
Christophe Riccio
5eac74c4da
Fixed ticket #163 , missing inlines
2012-01-11 17:37:44 +00:00
Christophe Riccio
9a394874c3
Promote and deprecate extensions
2012-01-10 20:43:20 +00:00
Christophe Riccio
c26057d07b
Merge branch '0.9.3' into 0.9.4
2012-01-10 10:40:00 +00:00
Christophe Riccio
953c80a1d6
Merge branch '0.9.3' of ssh://ogl-math.git.sourceforge.net/gitroot/ogl-math/ogl-math into 0.9.3
2012-01-09 11:21:48 +00:00
Christophe Riccio
88d3927558
Updated copyright date
2012-01-09 11:20:01 +00:00
Christophe Riccio
1ed0e3865b
Fixed log2 in GCC
2012-01-08 22:36:49 +00:00
Christophe Riccio
040ea3ce7e
Fixed conflict with Boost, ticket #158
2012-01-08 13:13:18 +00:00
Christophe Riccio
de3305ccef
Fixed ticket #157 , conflict with WinGDI.h
2011-12-17 18:55:30 +00:00
Christophe Riccio
ee00387d2d
Promoted the ULP extension
2011-12-12 14:53:30 +00:00
Christophe Riccio
f18ad6bf2e
Updated doxygen documentation
2011-12-07 14:50:15 +00:00
Christophe Riccio
a3b5034d4e
Updated constants list
2011-12-07 12:37:22 +00:00
Christophe Riccio
59b0d3ae00
Updated doxygen documentation
2011-12-07 12:22:28 +00:00
Christophe Riccio
7ff95df5e6
Fixed ticket #153 , vector and matrix queries
2011-12-06 12:22:43 +00:00
Christophe Riccio
888c298192
Fixed build
2011-11-22 22:28:18 +00:00
Christophe Riccio
d09501b7b0
Added epsilon constant and improved queries... still probably broken, need extra test
2011-11-22 17:52:53 +00:00
Christophe Riccio
64da6d3da3
Remove value_size() from vectors
2011-11-22 16:36:09 +00:00
Christophe Riccio
83f278f922
Fixed doxygen errors
2011-10-24 17:11:09 +01:00
Christophe Riccio
5050bfacf7
Fixed setup options
2011-10-20 14:03:08 +01:00
Christophe Riccio
d43e671dcd
Fixed ln_ten constant
2011-10-20 11:30:05 +01:00
Christophe Riccio
cc8fa8a9c1
Removed dependence with a deprecated extension
2011-10-19 19:02:46 +01:00
Christophe Riccio
b056a22498
Improved pure code path
2011-10-18 11:21:34 +01:00