SawTooth class Null safety

A sawtooth curve that repeats a given number of times over the unit interval.

The curve rises linearly from 0.0 to 1.0 and then falls discontinuously back to 0.0 each iteration.

Inheritance

Constructors

SawTooth(int count)
Creates a sawtooth curve.
const

Properties

count int
The number of repetitions of the sawtooth pattern in the unit interval.
final
flipped Curve
Returns a new curve that is the reversed inversion of this one.
read-only, inherited
hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
transform(double t) double
Returns the value of the curve at point t.
inherited
transformInternal(double t) double
Returns the value of the curve at point t.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited