public class CosineInterpolationControlPointsProvider extends java.lang.Object implements IBezierControlPointsProvider
IBezierControlPointsProvider
which produces output which is close to cosine interpolationConstructor and Description |
---|
CosineInterpolationControlPointsProvider() |
Modifier and Type | Method and Description |
---|---|
void |
adjustXPointRange(com.scichart.data.model.IndexRange xPointRange,
IDataSeries<?,?> dataSeries,
ICoordinateCalculator xCoordinateCalculator)
Adjusts
xPointRange in case if provider requires some additional points to calculate control points |
void |
getBezierCurveControlPoints(com.scichart.core.model.FloatValues xCoords,
com.scichart.core.model.FloatValues yCoords,
com.scichart.core.model.FloatValues xaCoords,
com.scichart.core.model.FloatValues yaCoords,
com.scichart.core.model.FloatValues xbCoords,
com.scichart.core.model.FloatValues ybCoords,
int count)
Calculates control points for cubic bezier curves to drawn smooth line though specified 2D coordinates
|
public CosineInterpolationControlPointsProvider()
public void getBezierCurveControlPoints(com.scichart.core.model.FloatValues xCoords, com.scichart.core.model.FloatValues yCoords, com.scichart.core.model.FloatValues xaCoords, com.scichart.core.model.FloatValues yaCoords, com.scichart.core.model.FloatValues xbCoords, com.scichart.core.model.FloatValues ybCoords, int count)
IBezierControlPointsProvider
getBezierCurveControlPoints
in interface IBezierControlPointsProvider
xCoords
- The xCoords to draw throughyCoords
- The yCoords to draw throughxaCoords
- The xCoords of first control points to setyaCoords
- The yCoords of first control points to setxbCoords
- The xCoords of second control points to setybCoords
- The yCoords of second control points to setcount
- The amount of points to draw throughpublic void adjustXPointRange(com.scichart.data.model.IndexRange xPointRange, IDataSeries<?,?> dataSeries, ICoordinateCalculator xCoordinateCalculator)
xPointRange
in case if provider requires some additional points to calculate control pointsadjustXPointRange
in interface IBezierControlPointsProvider
xPointRange
- The point range to adjustdataSeries
- The data series associated with this providerxCoordinateCalculator
- The current coordinate calculator for XAxis