Skip to content

Instantly share code, notes, and snippets.

@azchohfi
Created July 8, 2013 01:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azchohfi/5945681 to your computer and use it in GitHub Desktop.
Save azchohfi/5945681 to your computer and use it in GitHub Desktop.
#include "Camera.h"
Camera::Camera(void)
{
this->Up = Vector3::unitY;
...
}
#pragma once
#include "Vector3.h"
class Camera
{
public:
Camera(void);
...
}
#include "Vector3.h"
const Vector3 Vector3::up = Vector3(0, 1, 0);
...
#pragma once
struct Vector3
{
Vector3();
Vector3(float,float,float);
float x,y,z;
static const Vector3 up;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment