Back to Devexpress

Pie2DSeriesPointAnimationBase.CalculateAnimatedPieCenter(Point, Double, Double, Rect, Double) Method

wpf-devexpress-dot-xpf-dot-charts-dot-pie2dseriespointanimationbase-dot-calculateanimatedpiecenter-x28-system-dot-windows-dot-point-system-dot-double-system-dot-double-system-dot-windows-dot-rect-system-dot-double-x29.md

latest3.2 KB
Original Source

Pie2DSeriesPointAnimationBase.CalculateAnimatedPieCenter(Point, Double, Double, Rect, Double) Method

Calculates the final position of a Pie series’ center after its point animation has finished.

Namespace : DevExpress.Xpf.Charts

Assembly : DevExpress.Xpf.Charts.v25.2.dll

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public virtual Point CalculateAnimatedPieCenter(
    Point pieCenter,
    double radius,
    double angle,
    Rect viewport,
    double progress
)
vb
Public Overridable Function CalculateAnimatedPieCenter(
    pieCenter As Point,
    radius As Double,
    angle As Double,
    viewport As Rect,
    progress As Double
) As Point

Parameters

NameTypeDescription
pieCenterPoint

A Point structure, specifying the initial coordinates of the Pie’s center.

| | radius | Double |

A Double value, specifying the initial radius of the Pie.

| | angle | Double |

A Double value, specifying the initial angle at which the Pie is rotated.

| | viewport | Rect |

A Rect structure, specifying the drawing area of the Pie (including its point labels).

| | progress | Double |

A Double value, specifying the progress position of the animation.

|

Returns

TypeDescription
Point

A Point structure, specifying the final coordinates of the Pie’s center.

|

Remarks

Use the CalculateAnimatedPieCenter method, to obtain the final position of a Pie’s center, when creating a custom animation.

See Also

Pie2DSeriesPointAnimationBase Class

Pie2DSeriesPointAnimationBase Members

DevExpress.Xpf.Charts Namespace