20 lines
224 B
C++
20 lines
224 B
C++
#pragma once
|
|
|
|
class Point
|
|
{
|
|
private:
|
|
float m_x, m_y;
|
|
|
|
public:
|
|
Point(float x, float y) : m_x(x), m_y(y) {}
|
|
|
|
float x () const
|
|
{
|
|
return m_x;
|
|
}
|
|
|
|
float y () const
|
|
{
|
|
return m_y;
|
|
}
|
|
}; |