DSC Engine
Loading...
Searching...
No Matches
include
DSCEngine
types
point.hpp
Go to the documentation of this file.
1
6
#pragma once
7
8
namespace
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
}
DSC::Point
Generic point of two coordinates.
Definition:
point.hpp:15
DSC::Point::x
T x
Definition:
point.hpp:16
DSC::Point::y
T y
Definition:
point.hpp:17
Generated by
1.9.5