Point.h 248 B

1234567891011
  1. // Copyright (c) 2010 LearnBoost <tj@learnboost.com>
  2. #pragma once
  3. template <typename T>
  4. class Point {
  5. public:
  6. T x, y;
  7. Point(T x=0, T y=0): x(x), y(y) {}
  8. Point(const Point&) = default;
  9. Point& operator=(const Point&) = default;
  10. };