mirror of
https://github.com/allankoechke/raylib-cpp.git
synced 2026-11-30 10:59:00 +00:00
27 lines
412 B
C++
27 lines
412 B
C++
#ifndef RAYLIB_CPP_VECTOR2_HPP_
|
|
#define RAYLIB_CPP_VECTOR2_HPP_
|
|
|
|
#include "raylib.h"
|
|
#include "utils.hpp"
|
|
|
|
namespace raylib {
|
|
class Vector2 : public ::Vector2 {
|
|
public:
|
|
Vector2(::Vector2 vec) {
|
|
set(vec);
|
|
};
|
|
Vector2(float X = 0, float Y = 0) {
|
|
x = X;
|
|
y = Y;
|
|
};
|
|
inline void set(::Vector2 vec) {
|
|
x = vec.x;
|
|
y = vec.y;
|
|
}
|
|
|
|
GETTERSETTER(float,X,x)
|
|
GETTERSETTER(float,Y,y)
|
|
};
|
|
}
|
|
|
|
#endif |