Re:Show HN: Implementing a trackball with rational numbers
by grondilu on Monday October 16, 2017 @04:13PM
(#15486290)
I've updated the code to display more useful information on the values.
A big framerate drop is to be expected after several rotations, as the numerators and denominators become very big.
Here is the output:
a00 = 1432521999387336201000162233364364261412422778723249988532277223673502336434725335337083644796278416082366180670944929785069345/5986547728315893919428066873527575391908390247143416149511995033033437392431374342833088545303961365118098478697976518989268769 a00.valueOf() = 0.23929016595184258