Created
October 4, 2014 21:10
-
-
Save neildanson/ecd62615def2f3357d47 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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