How to plunge my vector & points distance calculations into gen for efficiency ?

    Jun 10 2012 | 9:47 am
    Hi there, diving in GenExpr with jit.gen for better efficiency. Even with, I'm a bit lost.
    As dtr suggested here:, I'd like to use jit.gen for a (basic) calculation.
    I have my vector coming from my cam view (position, orientation) & a point (position). I need to calculate elevation and azimuth relatively to my cam vector (indeed, a & e vary according to the orientation of cam)
    anyone would help me with this apparently easy stuff with gen ?
    swiz seems to be the key. but considering a matrix 1,3 (my vector, basically), how can I explode its values to x y & z variables to use them in a codebox inside gen ...?
    ANY leads/helps would save my hour =)