(self, vec)
| 428 | # Standard Vector Operations |
| 429 | |
| 430 | def project(self, vec): |
| 431 | x, y = vec.x, vec.y |
| 432 | temp = (self.x * x + self.y * y) / (x * x + y * y) |
| 433 | return Vector2(x * temp, y * temp) |
| 434 | |
| 435 | def rotate(self, vec): |
| 436 | x1, y1, x2, y2 = self.x, self.y, vec.x, vec.y |