| 69 | } |
| 70 | |
| 71 | void Vector2::Rotate(float angle) |
| 72 | { |
| 73 | float xt = (this->x * cosf(angle)) - (this->y * sinf(angle)); |
| 74 | float yt = (this->y * cosf(angle)) + (this->x * sinf(angle)); |
| 75 | this->x = xt; |
| 76 | this->y = yt; |
| 77 | } |
| 78 | |
| 79 | float Vector2::CrossProduct(const Vector2 &rhs) const |
| 80 | { |
nothing calls this directly
no outgoing calls
no test coverage detected