zpc930 / oolongengine

Automatically exported from code.google.com/p/oolongengine
0 stars 0 forks source link

Use floating point functions instead of casting resulting doubles to float #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Matrix.cpp uses functions like sqrt() sin() cos() but on assignment to
the float variables it will cast to float.

This can be simplified and perhaps perform a bit better by using the
floating point version of these functions.

Attached is a patch.

Original issue reported on code.google.com by myBuddyCJ@gmail.com on 21 Apr 2010 at 2:19

GoogleCodeExporter commented 8 years ago
Updated the patch file (missed a cast to float, and fixed a float comparison 
with zero)

Original comment by myBuddyCJ@gmail.com on 21 Apr 2010 at 2:26

Attachments: