Fractal Cat
New member
- Joined
- Dec 8, 2015
- Messages
- 2
dot product: FdotN = DotProduct(&curParticle->contactN,&curParticle->f);
Hi,
I am trying to understand a piece of computer code that calculates the dot product of two vectors: the contact normal and the velocity of a particle.
// Calculating Magnitude of Fn
FdotN is the dot product of two vectors which I think are collinear. The first is the contact normal of a particle and the other is the velocity.
FdotN = DotProduct(&curParticle->contactN,&curParticle->f);
I don't understand what the components of the vectors in this code are. Can someone help?
FC.
Hi,
I am trying to understand a piece of computer code that calculates the dot product of two vectors: the contact normal and the velocity of a particle.
// Calculating Magnitude of Fn
FdotN is the dot product of two vectors which I think are collinear. The first is the contact normal of a particle and the other is the velocity.
FdotN = DotProduct(&curParticle->contactN,&curParticle->f);
I don't understand what the components of the vectors in this code are. Can someone help?
FC.