def getInsetPoint(loop, tinyRadius):
 pointIndex = getWideAnglePointIndex(loop)
 point = loop[(pointIndex % len(loop))]
 afterPoint = loop[((pointIndex + 1) % len(loop))]
 beforePoint = loop[((pointIndex - 1) % len(loop))]
 afterSegmentNormalized = euclidean.getNormalized((afterPoint - point))
 beforeSegmentNormalized = euclidean.getNormalized((beforePoint - point))
 afterClockwise = complex(afterSegmentNormalized.imag, (- afterSegmentNormalized.real))
 beforeWiddershins = complex((- beforeSegmentNormalized.imag), beforeSegmentNormalized.real)
 midpoint = (afterClockwise + beforeWiddershins)
 midpointNormalized = (midpoint / abs(midpoint))
 return (point + (midpointNormalized * tinyRadius))

def getInsetPoint ( loop , tinyRadius ) : pointIndex = getWideAnglePointIndex ( loop ) point = loop [ ( pointIndex % len ( loop ) ) ] afterPoint = loop [ ( ( pointIndex + 1 ) % len ( loop ) ) ] beforePoint = loop [ ( ( pointIndex - 1 ) % len ( loop ) ) ] afterSegmentNormalized = euclidean . getNormalized ( ( afterPoint - point ) ) beforeSegmentNormalized = euclidean . getNormalized ( ( beforePoint - point ) ) afterClockwise = complex ( afterSegmentNormalized . imag , ( - afterSegmentNormalized . real ) ) beforeWiddershins = complex ( ( - beforeSegmentNormalized . imag ) , beforeSegmentNormalized . real ) midpoint = ( afterClockwise + beforeWiddershins ) midpointNormalized = ( midpoint / abs ( midpoint ) ) return ( point + ( midpointNormalized * tinyRadius ) )
get the inset vertex .