YAPOG  0.0.1
Yet Another Pokemon Online Game
Vector2.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_VECTOR2_HPP
2 # define YAPOG_VECTOR2_HPP
3 
4 # include <SFML/System/Vector2.hpp>
5 # include <SFML/System/Vector3.hpp>
6 # include <SFML/Graphics/Rect.hpp>
7 
9 
10 namespace yap
11 {
12  typedef sf::Vector2f Vector2;
13  typedef sf::Vector3f Vector3;
14 
17  typedef sf::Rect<uint> UIntRect;
18 
19  static const Vector2 VECTOR2_ZERO = Vector2 (0.0f, 0.0f);
20  static const Vector2 DEFAULT_POSITION = Vector2 (0.0f, 0.0f);
21  static const Vector2 DEFAULT_SIZE = Vector2 (1.0f, 1.0f);
22 
23  static const Vector3 VECTOR3_ZERO = Vector3 (0.0f, 0.0f, 0.0f);
24  static const Vector3 VECTOR3_ONE = Vector3 (1.0f, 1.0f, 1.0f);
25 
26  Vector2 Vector2FromVector2u (const sf::Vector2u& vector2u);
27 } // namespace yap
28 
29 #endif // YAPOG_VECTOR2_HPP