Package-level declarations

Types

Link copied to clipboard
class PositiveDouble(val value: Double)

Double number with value greater equals zero.

Link copied to clipboard
class StrictlyPositiveDouble(val value: Double)

Double number with value greater zero.

Link copied to clipboard
class ZeroOneDouble(val value: Double)

Double number with values between zero and one inclusive.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val DEG_TO_RAD: Double

Value to multiply a degree value by, to convert to radians.

Link copied to clipboard
Link copied to clipboard
const val HALF_PI: Double

Value of PI/2 as double. (90 degrees)

Link copied to clipboard
const val INV_PI: Double

Value of 1/PI as double.

Link copied to clipboard
const val INV_TWO_PI: Double

Value of 1/(2PI) as double.

Link copied to clipboard
const val PI: Double

Value of PI as double. (180 degrees)

Link copied to clipboard
const val QUARTER_PI: Double

Value of PI/4 as double. (45 degrees)

Link copied to clipboard
const val RAD_TO_DEG: Double

Value to multiply a radian value by, to convert to degrees.

Link copied to clipboard

Value of PI3/4 as double. (135 degrees)

Link copied to clipboard
const val TWO_PI: Double

Value of 2PI as double. (360 degrees)

Functions

Link copied to clipboard
fun fuzzyCompare(a: Double, b: Double, tolerance: Double): Int

Returns the comparison of a and b with a defined tolerance.

Link copied to clipboard
fun fuzzyEquals(a: Double, b: Double, tolerance: Double): Boolean

Returns if a equals b with a defined tolerance.

Link copied to clipboard

Returns true, if a<= b with a tolerance.

Link copied to clipboard

Returns true, if a>= b with a tolerance.

Link copied to clipboard
fun normalizeAngle(angle: Double, center: Double = PI): Double

Normalizes an angle around the center.

Link copied to clipboard

Reshapes a DoubleArray towards a matrix with a defined columnDimension.

Link copied to clipboard

Reshapes a DoubleArray towards a matrix with a defined rowDimension.

Link copied to clipboard
fun sign(x: Int): Int

Returns the signum of an integer x.