Quaternion strikes back

Featuring the Dragonfly web framework
Locked
hds1
Posts: 28
Joined: Thu Mar 20, 2014 5:02 pm

Quaternion strikes back

Post by hds1 »

Thanks Ted for the hint.
Done it. You can find the files here:
https://github.com/hds1

Regards
Heiko
Last edited by hds1 on Tue Apr 26, 2016 8:49 am, edited 1 time in total.

TedWalther
Posts: 608
Joined: Mon Feb 05, 2007 1:04 am
Location: Abbotsford, BC
Contact:

Re: Quaternion strikes back

Post by TedWalther »

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
Posts: 28
Joined: Thu Mar 20, 2014 5:02 pm

Re: Quaternion strikes back

Post by hds1 »

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
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Re: Quaternion strikes back

Post by Lutz »

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/ where it says "Index: hds1/newlisp-modules". If you prefer a different description line, let me know.

hds1
Posts: 28
Joined: Thu Mar 20, 2014 5:02 pm

Re: Quaternion strikes back

Post by hds1 »

@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

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

Locked