Package-level declarations

Types

Link copied to clipboard

A 3x3 projective transform in row-major order, mapping source to destination coordinates.

Link copied to clipboard
data class Point(val x: Double, val y: Double)

A 2D point in pixel coordinates (origin top-left, y grows downwards).

Link copied to clipboard
data class Quad(val topLeft: Point, val topRight: Point, val bottomRight: Point, val bottomLeft: Point)

A convex quadrilateral with corners in a fixed clockwise order starting at the top-left, as seen in the image.

Link copied to clipboard
data class Rect(val left: Double, val top: Double, val right: Double, val bottom: Double)

An axis-aligned rectangle in pixel coordinates.

Link copied to clipboard

A 2D similarity transform (uniform scale + rotation + translation): dst = [[a,-b],[b,a]] * src + t.