I need to calculate the center of mass (an average of all their positions) 
for some number n of entities. I have a template of the form 
(ENTITY(ID)(X)(Y)). How can I write a rule to calculate it without having to 
hardcode every entity into the left side of the rule? This is not possible 
because entities may be added or deleted and I can't write a rule for every 
combination of entities. The other idea I had was to keep a field in the 
template and mark it as each entity is figured into the calculation. Once 
the calculation is complete, reset all those fields for the next time. I am 
sure there is a better way to go about this. Any help?

Keith.

---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to