This repository has been archived on 2026-04-25. You can view files and clone it, but cannot push or open issues or pull requests.
Minesweeper/include/engine/vectors.h

25 lines
383 B
C
Raw Permalink Normal View History

2024-05-08 12:50:29 -05:00
// Define once
#ifndef H_VECTORS
#define H_VECTORS
// Includes
#include <iostream>
// Structure
typedef struct Vector2{
// Variables
float x,y;
// Constructor
Vector2();
Vector2(float x, float y);
// Operations
Vector2 operator+(Vector2 b);
Vector2 operator*(float b);
void operator+=(Vector2 b);
void operator*=(float b);
} Vector2;
// End definition
#endif