dilevin / computer-graphics-meshes

Computer Graphics Assignment about Meshes
1 stars 5 forks source link

Average of vectors #30

Closed NPTP closed 4 years ago

NPTP commented 4 years ago

Hi, Just want to verify that computing the "average" of vectors is just simple addition of n vectors then multiplying the result by 1/n? And since no normalization took place, this would result in an average vector which is weighted by the magnitudes of each of the n vectors, right?

Thanks!

songfeil commented 4 years ago

If vector represents direction, then you can just simply add up and normalize the result.

If it represents position, then “average” probably means linear interpolation of the input vectors.

在 2020年2月21日,17:26,Nick Perrin notifications@github.com 写道:

 Hi, Just want to verify that computing the "average" of vectors is just simple addition of n vectors then multiplying the result by 1/n? And this would result in an average vector which is weighted by the magnitudes of each of the n vectors, right?

Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.