comput slope path anchor point slope comput us segment instead us instantan slope unusu result near discontinu path bend slope radian rang slope pi slope slope seg len segment size comput slope path length path figur perimet length path distanc path distanc point line segment us comput slope path note averag slope instantan screwi result near bend path math max path distanc slope seg len posit clamp make end math min path length slope seg len slope point just arbitrari point point path figur point perimet point path figur point perimet theta slope theta 