Page 1 of 1

suggestion: setIdentity in btTransform() constructor ?

Posted: Mon Sep 21, 2009 2:28 pm
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

Re: suggestion: setIdentity in btTransform() constructor ?

Posted: Mon Sep 21, 2009 2:41 pm
by (void*)
Having the default constructor set the identity will add performance overhead which other programmers may not want.

Re: suggestion: setIdentity in btTransform() constructor ?

Posted: Mon Sep 21, 2009 4:36 pm
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

Re: suggestion: setIdentity in btTransform() constructor ?

Posted: Mon Sep 21, 2009 5:05 pm
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