Viesturs Lācis wrote:
>
> 1) What would correct syntax for line 18 and 19 look like?
>   
could be something like :

18 for (int i=1; i< limit; i++){
19              if (xy_tan == (90+(180*i)) || xy_tan == (90-(180*i)))
19                      pos->a = asin(sin(joints[5]) / sin(xy_tan)); 
20      }

where limit is the maximal value I can take.
this code is not optimised, because for large "limit" value, il will 
take a long time to iterate. But should work right for a limit value of 
5 or 10.




------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to