core / com.acmerobotics.roadrunner.util / DoubleProgression

DoubleProgression

data class DoubleProgression : Iterable<Double> (source)

A progression of values of type Double.

Types

IteratorImpl

Iterator implementation for DoubleProgression.

inner class IteratorImpl : Iterator<Double>

Constructors

<init>

A progression of values of type Double.

DoubleProgression(start: Double, step: Double, size: Int)

Properties

size

val size: Int

start

val start: Double

step

val step: Double

Functions

ceilIndex

fun ceilIndex(query: Double): Int

contains

operator fun contains(query: Double): Boolean

floorIndex

fun floorIndex(query: Double): Int

get

operator fun get(index: Int): Double

isEmpty

fun isEmpty(): Boolean

iterator

fun iterator(): IteratorImpl

minus

operator fun minus(offset: Double): DoubleProgression

plus

operator fun plus(offset: Double): DoubleProgression

size

fun size(): Int

split

fun split(sep: Double): Pair<DoubleProgression, DoubleProgression>

unaryMinus

operator fun unaryMinus(): DoubleProgression

Companion Object Functions

fromClosedInterval

fun fromClosedInterval(start: Double, endInclusive: Double, count: Int): DoubleProgression