suggestion: setIdentity in btTransform() constructor ?

Post Reply
loefje
Posts: 18
Joined: Thu May 28, 2009 10:43 am

suggestion: setIdentity in btTransform() constructor ?

Post by loefje »

Hi there,

with each new release I keep changing the
default btTransform contructor to this:

btTransform() { setIdentity(); }

may I suggest this as a feature ?

Jochem van der Spek
(void*)
Posts: 6
Joined: Tue Sep 15, 2009 2:32 pm

Re: suggestion: setIdentity in btTransform() constructor ?

Post by (void*) »

Having the default constructor set the identity will add performance overhead which other programmers may not want.
loefje
Posts: 18
Joined: Thu May 28, 2009 10:43 am

Re: suggestion: setIdentity in btTransform() constructor ?

Post by loefje »

i understand, though I would consider instantiating
a btTransform a non-time-critical operation.
Having to set the identity after instantiation
would give the same overhead, and is normally
expected if the transform is subsequently used
for multiplication,

J
loefje
Posts: 18
Joined: Thu May 28, 2009 10:43 am

Re: suggestion: setIdentity in btTransform() constructor ?

Post by loefje »

irony though that I've just written 3 functions
in which I had to fill a just-instantiated transform
with other values than Identity :) personally, I don't
mind the overhead, but setting the identity on
construction with a (static) identity tranform works fine too.
in all, my point is moot.

J
Post Reply