Quaternion strikes back

Started by hds1, April 25, 2016, 04:24:04 AM

Previous topic - Next topic

hds1

Thanks Ted for the hint.

Done it. You can find the files here:

https://github.com/hds1">https://github.com/hds1



Regards

Heiko

TedWalther

#1
Can you put this on github so it is easier to review your code changes?
Cavemen in bearskins invaded the ivory towers of Artificial Intelligence.  Nine months later, they left with a baby named newLISP.  The women of the ivory towers wept and wailed.  \"Abomination!\" they cried.

hds1

#2
i would consider the package now a stable first release.

For the Dual Quaternion module the NLERP, DLB, DLBblending, ScLERP, get/setScrewParams et al. have been added.

There are some dependencies between these modules. For the DQ you will need the dualNum,vector and quaternion module as well.

If you are interested in these modules pls download from Github.



Thanks for your patience.

Have fun.

Lutz

#3
Thanks for the contributions, Heiko!



The old files for vector.lsp and quadlib.lsp have been removed and a GitHub link is added on the modules page here: http://www.newlisp.org/modules/">http://www.newlisp.org/modules/ where it says "Index: hds1/newlisp-modules". If you prefer a different description line, let me know.

hds1

#4
@Lutz, the naming is just fine by me.



For those in need for speed i've ported the code to C and put it on github so you can access it via FFI.



https://github.com/hds1/dual-quaternion-c">https://github.com/hds1/dual-quaternion-c



The functionality is quite the same as for the newlisp module.



Time needed for 1000000 Dual Quaternion ScLERPs: 2.498[sec]

Time needed for 1000000 Dual Quaternion NLERPs: 0.722[sec]

on a 2.4GHz M520 CPU.



The footprint of the libraries is very small with 25k for the DualQuaternion one being the biggest.

Code is not optimized.



Have fun.

Regards

Heiko