9 Camera::Camera(int width, int height, const Vector<float> *target)
10 : target(target), halfWidth(width / 2), halfHeight(height / 2) {
15 void Camera::SetTarget(const Vector<float> *t) {
20 Vector<int> Camera::CalculateOffset() const {
23 (target->X() - halfWidth) * -1,
24 (target->Y() - halfHeight) * -1);