You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
379 B

#pragma once
#include "ggl.h"
class Vector3f {
public:
float x, y, z;
Vector3f(float x = 0.0f, float y = 0.0f, float z = 0.f);
Vector3f operator+(Vector3f &r);
Vector3f operator-(Vector3f &r);
Vector3f operator*(float scaler);
float operator*(Vector3f &r);
void operator=(Vector3f &r);
void Normalize();
float Magnitude();
};
Vector3f Cross(Vector3f v1, Vector3f v2);