Companion

object Companion

Functions

Link copied to clipboard
fun approximatePolygonAspectRatio(polygon: List<PointF>, frameWidth: Int, frameHeight: Int, frameOrientation: Int): Float

Approximate polygon aspect ratio.

Link copied to clipboard

Provide Polygon, covering whole image {(0,0), (0,1), (1,1), (1,0)}

Link copied to clipboard

Provide contra-clockwise Polygon, covering whole image {(0,0), (1,0), (1,1), (0,1)}

Link copied to clipboard
fun rotatePolygon(polygon: List<PointF>, rotation: Float = 0.0f): List<PointF>

Rotate polygon.