DSC Engine
Loading...
Searching...
No Matches
point.hpp
Go to the documentation of this file.
1
6#pragma once
7
8namespace DSC
9{
13 template<typename T>
14 struct Point
15 {
16 T x;
17 T y;
18 };
19
20 template<typename T>
21 inline bool operator == (const Point<T>& p1, const Point<T>& p2) { return p1.x==p2.x && p1.y==p2.y; }
22
23 template<typename T>
24 inline bool operator != (const Point<T>& p1, const Point<T>& p2) { return p1.x!=p2.x || p1.y!=p2.y; }
25}
Generic point of two coordinates.
Definition: point.hpp:15
T x
Definition: point.hpp:16
T y
Definition: point.hpp:17