FatLine

Represents a "fat line," which is a construct used in geometry for error-bounded approximations of parametric curves. A fat line is defined by a curve and a parametric range and can be subdivided recursively as needed for geometric computations like intersection testing.

This class serves as an abstraction for managing portions of a given curve within specific parametric intervals, while also maintaining bounds and line segments for geometric calculations.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The associated line segment defined by the endpoints of the range.

Link copied to clipboard

The 2D parametric curve represented by this FatLine.

Link copied to clipboard
Link copied to clipboard

The portion of the curve in the parametric range t.lo, t.hi.

Link copied to clipboard
val t: Interval

The parametric interval of the curve for this FatLine.

Functions

Link copied to clipboard
fun bounds(): Box2
Link copied to clipboard

Determines if the current FatLine instance intersects with another FatLine instance. The intersection check is performed by comparing the bounds of the two lines, with an epsilon margin applied for spatial tolerance.

Link copied to clipboard
fun line(): Line2
Link copied to clipboard
fun mid(): Double
Link copied to clipboard

Splits the current FatLine instance into smaller segments depending on its flatness.

Link copied to clipboard
open override fun toString(): String