Tag archive for c++

Vector Class 02

Vector Class 02

The Second part of creating a Vector Class. This is where all the magic happens! #ifndef POINT_H #define POINT_H #include <iostream> #include <math.h> #include “Point.h” using namespace std; //—————– //VECTOR CLASS //—————– class Vector : public Point { public: Vector(float fX = 0.0, float fY…

Continue reading →

Vector Class 01

Vector Class 01

A rundown on how to construct a basic vector class in c++. First step is to create a point class and then create a vector class that is inherited from it. This part is quite straightforward. In the end, an overloaded operator of the =…

Continue reading →