MGML_MATH library:


In plain English:

1. Author don't promise that this software works.  (But if you find any bugs, please let me know!)
2. You can use this software for whatever you want.  
   You don't have to pay Author.
3. You may not pretend that you wrote this software.  If you use it in a
   program, you must acknowledge somewhere in your documentation that
   you've used the MGML_MATH library code.
4. You may not to change and distribute MGML_MATH simultaniuosly. You may distribute it without changing. If you change code you must indicate that you distribute nonstandard version of library. 
   

In legalese:

The author make NO WARRANTY or representation, either express or implied,
with respect to this software, its quality, accuracy, merchantability, or
fitness for a particular purpose.  This software is provided "AS IS", and
you, its user, assume the entire risk as to its quality and accuracy.

This software is copyright (C) 2008,
Vladimir frolov
http://ray-tracing.ru/
All Rights Reserved except as specified below.

Permission is hereby granted to use, copy, modify, and distribute this
software (or portions thereof) for any purpose, without fee, subject to
these conditions:
(1) If any part of the source code for this software is distributed, then
this README file must be included, with this copyright and no-warranty
notice unaltered; and any additions, deletions, or changes to the original
files must be clearly indicated in accompanying documentation.
(2) If only executable code is distributed, then the accompanying
documentation must state that "this software is based in part on MGML_MATH library".
(3) Permission for use of this software is granted only if the user accepts
full responsibility for any undesirable consequences; the author accept NO
LIABILITY for damages of any kind.

These conditions apply to any software derived from or based on the MGML_MATH code, not just to the unmodified
library.  If you use my work, you ought to acknowledge me.


see MGML_MATH library on http://ray-tracing.ru/ to get more information.

Additional Dependencies:

the source code of ray-triangle hit was taken from 
http://www.cs.virginia.edu/~gfx/Courses/2003/ImageSynthesis/papers/Acceleration/Fast%20MinimumStorage%20RayTriangle%20Intersection.pdf
(Fast Minimum Storage Ray/Triangle Intersection 
Chalmers University of Technology
Cornell University) and changed

the source code of ray-box intersection was taken from
http://www.flipcode.com/archives/SSE_RayBox_Intersection_Test.shtml
and changed some
