[ODE] tricollider question

Anselm Hook anselm at hook.org
Sun Jul 14 23:57:02 2002


That's a good idea.

-a

On Mon, 15 Jul 2002, Henry wrote:

> It's perfectly acceptable to cast a dVector into a dcVector but it looks
> like it was done with references so that all the dcVector operators and
> functions could be used on the dVector in place. I could make a copy and
> then write it back but I suppose the real question is why not just do
> the operations on the original data ie write the missing functions for
> dVector ( operator *, DotProduct etc) Can anyone think of a good reason
> why this couldn't be done?
>
> Henry
>
>
>
>
> On Friday, July 12, 2002, at 06:34  PM, Nate W wrote:
>
> > The line creates a dcVector3 reference named Pos, and initializes it
> > with
> > "pos" field of the j-th element of the BoxContacts array.  The ".pos"
> > member is an object of type dVector3 (an ODE type) and the reference is
> > of
> > type dcVector3 (declared in dxTriList.h), so this only works (if it
> > works
> > at all) with an explicit cast.
>
> _______________________________________________
> ODE mailing list
> ODE@q12.org
> http://q12.org/mailman/listinfo/ode
>