hkArray::copyBackwards

hkArray::copyBackwards

The 'copyBackwards' method in the hkArray template returns a copy in the same order as the source.
It differs from 'copy' only in that it starts at the end and copies till the beginning.
I was however expecting a copy in the reverse or backwards order.

Just wondering if the current behaviour is correct?

Gabriel

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Quoting - gnotman
Just wondering if the current behaviour is correct?

Hi Gabrel,
The function name is a little confusing, but this seems to be the correct behavior. I am logging a ticket to add a copyReverse(...) function to future Havok versions in case this would be useful.
Thanks,
Dave

Leave a Comment

Please sign in to add a comment. Not a member? Join today