Random header image... Refresh for more!

Well, That Could Have Something To Do With It…

public CvPoint GetAverageVelocity()
{
    double avgX = BombPositions.Average(bomb => bomb.X);
    double avgY = BombPositions.Average(bomb => bomb.Y);

    return new CvPoint((int)avgX, (int)avgY);
}

And that’s why I don’t work for NASA.

0 comments

There are no comments yet...

Kick things off by filling out the form below.

Leave a Comment