|
Smolgui
Immediate gui library based on SFML
|
Define a line with two points. More...
#include <Shapes.h>
Public Member Functions | |
| Line ()=default | |
| Line (const sf::Vector2< Type > &begin, const sf::Vector2< Type > &end) | |
| sf::Vector2< Type > | direction () const |
| get direction of the line | |
Public Attributes | |
| sf::Vector2< Type > | tail = {} |
| tail of the line | |
| sf::Vector2< Type > | head = {} |
| head of the line | |
Define a line with two points.
|
default |
| sgui::Line< Type >::Line | ( | const sf::Vector2< Type > & | begin, |
| const sf::Vector2< Type > & | end ) |
| sf::Vector2< Type > sgui::Line< Type >::direction | ( | ) | const |
get direction of the line
| sf::Vector2<Type> sgui::Line< Type >::head = {} |
head of the line
| sf::Vector2<Type> sgui::Line< Type >::tail = {} |
tail of the line