Capycore Engine  0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
Loading...
Searching...
No Matches
point.h
Go to the documentation of this file.
1#pragma once
2
6class Point {
7 public:
9 Point(float x, float y);
10 float x;
11 float y;
12
18 Point distance_to(const Point& other) const;
19};
Represents a point in 2D space.
Definition point.h:6
float x
Definition point.h:10
Point distance_to(const Point &other) const
Calculates the distance to another point.
Point(float x, float y)
float y
Definition point.h:11