SineCurve class

"SineCurve is a Curve that transforms a value by applying a sine function to it."

The transformInternal method is the only method that needs to be implemented. It takes a value between 0.0 and 1.0 and returns a value between 0.0 and 1.0

Inheritance

Constructors

SineCurve({double count = 3})
Setting the default value of the count parameter to 3.
const

Properties

count double
A parameter that is passed to the constructor.
final
flipped Curve
Returns a new curve that is the reversed inversion of this one.
read-onlyinherited
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
transform(double t) double
Returns the value of the curve at point t.
inherited
transformInternal(double t) double
"The transformInternal function returns the sine of the count times 2 times pi times t."
override

Operators

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