MCPcopy Create free account
hub / github.com/SFML/SFML / getPoint

Method getPoint

test/Graphics/Shape.test.cpp:25–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 }
24
25 sf::Vector2f getPoint(std::size_t index) const override
26 {
27 switch (index)
28 {
29 default:
30 case 0:
31 return {m_size.x / 2, 0};
32 case 1:
33 return {0, m_size.y};
34 case 2:
35 return {m_size.x, m_size.y};
36 }
37 }
38
39private:
40 sf::Vector2f m_size;

Callers 4

Shape.test.cppFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected