Search
Utilities.getArcParams Method
See Also
 

Calculates the bounding rectangle, start and sweep angle of an arc from the specified arc end points, direction flags and radius sizes.

Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming

 Syntax

Java  Copy Code

public static void getArcParams (
    Point2D.Float pt1,
    Point2D.Float pt2,
    boolean isLargeArc,
    boolean isCounterclockwise,
    float radiusX,
    float radiusY,
    float angleRotation,
    Point2D.Float centerPt,
    ByRef<Float> startAngle,
    ByRef<Float> sweepAngle
)

 Parameters

pt1

?he arc's start point.

pt2

The arc's end point.

isLargeArc

A flag specifying whether to choose the shorter ot longer arc.

isCounterclockwise

A flag specifying whether to choose the clockwise arc.

radiusX

Specifies the X radius of the ellipse.

radiusY

Specifies the Y radius of the ellipse.

angleRotation

Specifies the rotation of the ellipse.

centerPt

Returns the center of the bounding rectangle.

startAngle

Returns the start angle of the arc.

sweepAngle

Returns the sweep angle of the arc.

 See Also