4 * Created on: Sep 29, 2012
12 using geometry::Vector;
16 Camera::Camera(int width, int height, const Vector<float> *target)
17 : target(target), halfWidth(width / 2), halfHeight(height / 2) {
22 void Camera::SetTarget(const Vector<float> *t) {
27 Vector<int> Camera::CalculateOffset() const {
30 (target->X() - halfWidth) * -1,
31 (target->Y() - halfHeight) * -1);