5 #include <SFML/Graphics.hpp> 6 #include <SFML/Window.hpp> 7 #include <SFML/Graphics/RectangleShape.hpp> 11 #include "../alignment/DrawNode.h" 12 #include "../alignment/Edge.h" 16 const double PI = 3.14159265359;
17 double norm(sf::Vector2f vec);
18 double innerPr(sf::Vector2f vec1, sf::Vector2f vec2);
44 ArrowShape(sf::Vector2f s, sf::Vector2f e,
int sizeConstant, sf::Color col);
53 void setCoords(sf::Vector2f start, sf::Vector2f end);
59 void setProps(
int sizeConstant, sf::Color col);
60 void Draw(sf::RenderWindow& window);
66 sf::CircleShape getShape();
69 #endif //ArrowShape_H_
This Class stores the methods to draw a Arrow with a start and end coordinate.
Definition: ArrowShape.h:25
sf::RectangleShape line
the line of the arrow
Definition: ArrowShape.h:27
sf::CircleShape tri
the front of the arrow (triangle)
Definition: ArrowShape.h:28