MCPcopy Create free account
hub / github.com/city-super/Octree-GS / screenPos

Method screenPos

SIBR_viewers/src/core/view/interface/Interface.cpp:253–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251 }
252
253 UV01 MultiViewInterface::screenPos(const PixPos & pix)
254 {
255 sibr::Vector2f pos = (pix.pos.cast<float>().cwiseQuotient(scalesData[currentScale].imSize) +
256 sibr::Vector2f(pix.im % grid.x(), pix.im / grid.x())).cwiseQuotient(grid.cast<float>());
257 pos.y() = 1.0f - pos.y();
258 return UV01::from((pos - viewRectangle.tl()).cwiseQuotient(viewRectangle.br() - viewRectangle.tl()));
259 }
260
261 UV01 MultiViewInterface::screenPosPixelCenter(const PixPos & pix)
262 {

Callers

nothing calls this directly

Calls 2

tlMethod · 0.45
brMethod · 0.45

Tested by

no test coverage detected