30 Commits

Author SHA1 Message Date
Philippe Groarke
fd327cd341 cleanup : Remove trailing whitespaces. 2018-03-24 20:01:03 -04:00
Christophe Riccio
faf1da52b7 Renamed P (for precision) template argument to Q (for qualifier) 2017-08-16 01:22:50 +02:00
Christophe Riccio
e76fca75a0 More consistent coding style 2017-08-15 22:04:24 +02:00
Christophe Riccio
a805fb9d68 Renamed precision enum to qualifier 2017-08-15 21:23:47 +02:00
Christophe Riccio
c2fe3fccf6 Use length_t instead of int for vec and mat lengths #584 2016-12-30 20:05:04 +01:00
Christophe Riccio
947b07cbc4 remove template alias for more compiler support and simplified swizzle expression implementation #584 2016-12-30 01:23:29 +01:00
Christophe Riccio
58c5e0ef4d Fixed intersectRayTriangle #6 2016-11-25 00:33:45 +01:00
Christophe Riccio
ef4425a61d Fixed intersectRayPlane returns true in parallel case #578 2016-11-24 01:27:17 +01:00
Christophe Riccio
316460408a Simplify and more consistency for files headers 2016-05-23 22:55:49 +02:00
Christophe Riccio
8bcc4e0045 merge 0.9.7 2016-01-03 18:46:43 +01:00
Jesse Talavera-Greenberg
7db048b851 Move dependencies from intersect.inl to intersect.hpp 2016-01-03 18:34:51 +01:00
Sven-Hendrik Haase
a75e38fb40 Remove old commented code 2015-10-23 15:58:43 +02:00
Sven-Hendrik Haase
96b7850cab Fix unintentional backface culling in triangle intersect
This also fixes #194. The backface culling is unintentional because it is not documented anywhere and we can't give the triangle a normal so just assume the general case.
2015-10-20 04:05:58 +02:00
Tom Cumming
14a7c56abd Ray plane intersection function 2014-01-07 10:54:00 +00:00
Christophe Riccio
ccb25c84c7 Update copyright year 2014-01-04 22:32:28 +01:00
Christophe Riccio
950eaa45cb Reduced dependencies for GTC extensions 2013-12-24 13:45:14 +01:00
Christophe Riccio
2a4434786e Updated date 2013-02-20 16:21:56 +01:00
boromisp
1683e78f58 Fixed the line-sphere intersection
The original implementation had the same mistakes than the ray-sphere
intersection.
Added two new 'out' parameters to return both intersection ponits.
Changed the implementation to the geomethric method.
2012-11-11 23:53:10 +01:00
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
88d3927558 Updated copyright date 2012-01-09 11:20:01 +00:00
Christophe Riccio
8d843a448a Vectorize and reformatting 2011-10-14 14:07:53 +01:00
Christophe Riccio
3621deaeb5 Removed gtc and gtx namespaces 2011-06-10 16:45:17 +01:00
Christophe Riccio
06cc480baa Removed gtx extension namespace 2011-06-07 11:28:11 +01:00
Christophe Riccio
201281d06d Added CUDA support 2011-04-09 09:44:32 +01:00
Christophe Riccio
e4421a9b0f Updated copyright dates 2011-01-20 11:40:14 +00:00
Christophe Riccio
05439738b8 Updated to GLM 0.9.B 2010-04-29 11:56:52 +01:00
Christophe Riccio
7c7b1d0b3d Added GLM 0.8.4 2010-04-29 11:54:07 +01:00
Christophe Riccio
b1b02bc31b RAZ 2010-04-29 11:52:01 +01:00
Christophe Riccio
25b03fe24c Initial commit based on GLM 0.9.B.1 code 2010-04-14 13:23:59 +01:00