Trying to determine how the Xi+1 is no longer applicable by changing summation bounds:
n−1∑i=0(Xi+Xi+1)(Yi+1−Yi)=n∑i=1Xi(Yi+1−Yi−1)
Can somebody explain algebraically how this is derived from the bounds?
The source is found here, scroll down to "Polygons, 2D Polygons".
Answer
There was a previously deleted answer which was almost correct, which I have fixed and reproduced below:
n−1∑i=0(Xi+Xi+1)(Yi+1−Yi)=n−1∑i=0Xi(Yi+1−Yi)+n−1∑i=0Xi+1(Yi+1−Yi)=n−1∑i=0Xi(Yi+1−Yi)+n∑i=1Xi(Yi−Yi−1)=n∑i=1Xi(Yi+1−Yi)+n∑i=1Xi(Yi−Yi−1)=n∑i=1Xi(Yi+1−Yi−1)
The third equality follows since X0(Y1−Y0)=Xn(Yn+1−Yn) (as the indices are modulo n), so removing the i=0 term and adding in the i=n term does not change the sum.
No comments:
Post a Comment