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
suggestion: setIdentity in btTransform() constructor ?
-
- Posts: 18
- Joined: Thu May 28, 2009 10:43 am
-
- Posts: 6
- Joined: Tue Sep 15, 2009 2:32 pm
Re: suggestion: setIdentity in btTransform() constructor ?
Having the default constructor set the identity will add performance overhead which other programmers may not want.
-
- Posts: 18
- Joined: Thu May 28, 2009 10:43 am
Re: suggestion: setIdentity in btTransform() constructor ?
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
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
-
- Posts: 18
- Joined: Thu May 28, 2009 10:43 am
Re: suggestion: setIdentity in btTransform() constructor ?
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
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