circleSector

abstract fun circleSector(radius: Double, angle: Double, heading: Double): Euclidean2DShape

A circle sector is the portion of a disk enclosed by two radii and an arc and it extends in the first and second axis by its radius and angle.

Return

the shape

Parameters

radius

the radius of the circle from which the sector is extracted

angle

the angle of the arc in radians, it determines its dimension in the second axis

heading

the angle in radians of the median segment which bisects the sector. It's used to determine the sector's heading.