gmlealll
06-12-2007, 10:17 PM
Please help. I’m relative new to script and I can figure out this
Let say I have 2 arrays one with distances and the other with angles and I need to find the shortest distance based on the smallest angle.
Distance = #(11.2599, 19.9642, 30.6581, 76.304, 63.1349, 123.804, 143.7, 11.2599, 103.806)
Angle = #(3.39575, 6.80031, 21.1783, 49.8769, 49.8602, 111.458, 176.677, 0.538503, 105.356)
These arrays are from points and got the distances and angles between them. As you can see there are 2 that have the same distance but not the same angle. How do I find the index of the point which has the shortest distance based on the smallest angle?
Thanks,
Guillermo Leal
Let say I have 2 arrays one with distances and the other with angles and I need to find the shortest distance based on the smallest angle.
Distance = #(11.2599, 19.9642, 30.6581, 76.304, 63.1349, 123.804, 143.7, 11.2599, 103.806)
Angle = #(3.39575, 6.80031, 21.1783, 49.8769, 49.8602, 111.458, 176.677, 0.538503, 105.356)
These arrays are from points and got the distances and angles between them. As you can see there are 2 that have the same distance but not the same angle. How do I find the index of the point which has the shortest distance based on the smallest angle?
Thanks,
Guillermo Leal
