polygonToLinePoints

open fun polygonToLinePoints(polygon: List<PointF>, points: Array<Float>)

Calculates lines points from polygon multiplying 0..1 values by view dimensions and applying rotation matrix. Usually used on preview as it has camera rotation

Parameters

polygon
points