Package-level declarations

Types

Link copied to clipboard
data class AspectRatio(val width: Double = 1.0, val height: Double = 1.0)

Aspect ratio is the ratio of the width to the height of an image or screen.

Link copied to clipboard
data class LineSegmentFloat(val start: PointF, val end: PointF)

Represents a line segment in 2D space.

Link copied to clipboard
data class LineSegmentInt(val start: Point, val end: Point)

Represents a line segment in 2D space.

Link copied to clipboard
data class Point(val x: Int, val y: Int)
Link copied to clipboard
data class PointF(val x: Float, val y: Float)
Link copied to clipboard
data class Rect(val left: Int = 0, val top: Int = 0, val right: Int = 0, val bottom: Int = 0)

Functions

Link copied to clipboard
fun List<PointF>.toNSValues(): List<NSValue>
Link copied to clipboard