Thursday, June 15, 2017

Perimeter Of A Irregular Polygon By Points



function Perimeter_Of_A_Irregular_Polygon_By_Points(points, i=1) =
let(   
     Side = (norm(points[i]-points[i-1])))
    i<len(points)?Side 
+Perimeter_Of_A_Irregular_Polygon_By_Points(points, i+1) 
:(norm(points[0]-points[i-1])); 

 

No comments:

Post a Comment