MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / getPointPosition

Method getPointPosition

src/Core/Graphics/Shapes.cpp:110–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108 }
109
110 Transform::UnitVector Polygon::getPointPosition(std::size_t index) const
111 {
112 const sf::Vector2f pixelPosition = shape.getPoint(index);
113 return Transform::UnitVector(
114 pixelPosition.x, pixelPosition.y, Transform::Units::ScenePixels);
115 }
116
117 void Polygon::draw(sf::RenderTarget& target, sf::RenderStates states) const
118 {

Callers

nothing calls this directly

Calls 2

UnitVectorClass · 0.85
getPointMethod · 0.80

Tested by

no test coverage detected