Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:17

0001 /**
0002 SGLM_frame_targetting_test.cc
0003 ===============================
0004 
0005 ::
0006 
0007     ~/o/sysrap/tests/SGLM_frame_targetting_test.sh info_build_run
0008 
0009 
0010 1. fabricate frames A and B in code, with known simple relationhip like double the extent
0011 2. instanciate two correponding SGLM instances from the two frames
0012 3. write the two SGLM descriptions 
0013 4. compare the two descriptions
0014 
0015 **/
0016 
0017 #include "SGLM.h"
0018 
0019 int main(int argc, char** argv)
0020 {
0021     sfr a ; 
0022     a.set_extent(100.f); 
0023 
0024     SGLM A ; 
0025     A.set_frame(a) ; 
0026     A.writeDesc("$FOLD", "A" ); 
0027 
0028     std::cout 
0029         << "A_MVP (aka world2clip) "
0030         << std::endl 
0031         << stra<float>::Desc(A.MVP_ptr, 16) 
0032         << std::endl
0033         << "A.desc_MVP_ce_corners" 
0034         << std::endl 
0035         << A.desc_MVP_ce_corners()
0036         << std::endl 
0037         ;
0038 
0039 
0040     sfr b ; 
0041     b.set_extent(200.f); 
0042 
0043     SGLM B ; 
0044     B.set_frame(b) ; 
0045     B.writeDesc("$FOLD", "B" ); 
0046 
0047     std::cout 
0048         << "B_MVP (aka world2clip) "
0049         << std::endl 
0050         << stra<float>::Desc(B.MVP_ptr, 16) 
0051         << std::endl
0052         << "B.desc_MVP_ce_corners" 
0053         << std::endl 
0054         << B.desc_MVP_ce_corners()
0055         << std::endl 
0056         ; 
0057 
0058     return 0 ; 
0059 }