Functions
-
std::tuple<uint32_t, uint32_t> GetGridSize (uint32_t n)Calculate the grid size needed to fit |n| elements by alternately adding rows and columns.
Defined at line 8 of file ../../src/camera/bin/camera-gym/screen_util.cc
-
float Scale (float display_width, float display_height, float bounding_width, float bounding_height)Calculate scaling factor to fit display width and height into a bounding width and height while
preserving the width and height ratio.
Defined at line 21 of file ../../src/camera/bin/camera-gym/screen_util.cc
-
std::tuple<float, float> GetCenter (uint32_t indexuint32_t n)Calculate the center of an element |index| in a grid with |n| elements.
Defined at line 28 of file ../../src/camera/bin/camera-gym/screen_util.cc