Initial Upload Week 4 [19/10]

This commit is contained in:
IDunnoDev
2021-12-11 13:18:04 +00:00
committed by iDunnoDev
parent 608719d73f
commit 7c62126ede
18 changed files with 1170 additions and 0 deletions

29
Vertex.h Normal file
View File

@ -0,0 +1,29 @@
#pragma once
class Vertex
{
public:
Vertex();
Vertex(float x, float y, float w);
Vertex(const Vertex& other);
// Accessors
float GetX() const;
void SetX(const float x);
float GetY() const;
void SetY(const float y);
float GetW() const;
void SetW(const float w);
// Assignment operator
Vertex& operator= (const Vertex& rhs);
bool operator== (const Vertex& rhs) const;
const Vertex operator+ (const Vertex& rhs) const;
private:
float _x;
float _y;
float _w;
};