Share

mjbWorld

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

C Quat to Matrix function (my C is terrible!)

You are viewing a single message from this topic. View all messages.

  1. 2007-04-18 16:38:18 UTC
    Gack!

    Pass in the destination array as a function argument. Right now you're returning a pointer to local (stack) memory which is going to be re-used after the function returns, and pointing "gdcm" at that stack memory. Arrays are not copied by the "=" operator in C. Your array size also needs to be [3][3].
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.