Package-level declarations

Types

Link copied to clipboard
data class Polar2d(val theta: Double, val radius: Double)

Represents a coordinate in the polar coordinate system.

Link copied to clipboard
data class Polar2dDual<Param>(val theta: DualNum<Param>, val radius: DualNum<Param>)

The dual number variant of Polar2d.

Properties

Link copied to clipboard
const val PI_2: Double

PI / 2

Functions

Link copied to clipboard
fun <Param> DualNum<Param>.atan(): DualNum<Param>

Returns the inverse tangent of a dual number.

Link copied to clipboard
fun <Param> Vector2dDual<Param>.atan2(): DualNum<Param>

Returns the inverse tangent of a Vector2dDual.

Link copied to clipboard
fun <T> T?.isNotNull(): Boolean

Returns true if this is not null.

Link copied to clipboard
fun <T> T?.isNull(): Boolean

Returns true if this is null.

Link copied to clipboard
inline fun Vector2d.map(f: (Double) -> Double): Vector2d

Applies function f to both Vector2d.x and Vector2d.y, returning the result.

Link copied to clipboard

Rounds a number to a certain number of decimal places.