2020-11-18 18:01:43 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class Point
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
float m_x, m_y;
|
|
|
|
|
|
|
|
public:
|
|
|
|
Point(float x, float y) : m_x(x), m_y(y) {}
|
|
|
|
|
2020-11-26 22:19:14 +01:00
|
|
|
float x () const
|
2020-11-18 18:01:43 +01:00
|
|
|
{
|
|
|
|
return m_x;
|
|
|
|
}
|
|
|
|
|
2020-11-26 22:19:14 +01:00
|
|
|
float y () const
|
2020-11-18 18:01:43 +01:00
|
|
|
{
|
|
|
|
return m_y;
|
|
|
|
}
|
|
|
|
};
|