Package-level declarations

Types

Link copied to clipboard
data class PgBox(val high: PgPoint, val low: PgPoint)

Represents a rectangular box defined by its upper right (high) and lower left (low) corners.

Link copied to clipboard
data class PgCircle(val center: PgPoint, val radius: Double)

Represents a circle defined by a center point and a radius.

Link copied to clipboard
data class PgLine(val a: Double, val b: Double, val c: Double)

Represents an infinite line in a 2-dimensional space. The linear equation is represented as ax + by + c = 0.

Link copied to clipboard
data class PgLseg(val p1: PgPoint, val p2: PgPoint)

Represents a finite line segment defined by its two endpoints.

Link copied to clipboard
data class PgPath(val closed: Boolean, val points: List<PgPoint>)

Represents a geometric path, consisting of a sequence of connected points.

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

Represents a point in a 2-dimensional space.

Link copied to clipboard
data class PgPolygon(val points: List<PgPoint>)

Represents a polygon, consisting of a closed sequence of connected points.