Skip to content

Instantly share code, notes, and snippets.

@neildanson
Created October 4, 2014 21:10
Show Gist options
  • Save neildanson/ecd62615def2f3357d47 to your computer and use it in GitHub Desktop.
Save neildanson/ecd62615def2f3357d47 to your computer and use it in GitHub Desktop.
#pragma once
#include <math.h>
class Vector
{
const double x, y, z;
public:
Vector(double x, double y, double z);
double Dot(Vector);
double Length();
Vector Cross(Vector);
Vector Add(Vector);
Vector Subtract(Vector);
Vector Scale(double);
Vector Normalize();
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment