GH_GraphicsUtilSolveArc Method (PointF, PointF, SizeF, RectangleF, Single, Single) |
Create a GDI circular arc definition from start-point, end-point and tangent direction.
Namespace:
Grasshopper.GUI
Assembly:
Grasshopper (in Grasshopper.dll)
Syntax public static bool SolveArc(
PointF p0,
PointF p1,
SizeF dir,
ref RectangleF box,
ref float angle,
ref float sweep
)
Public Shared Function SolveArc (
p0 As PointF,
p1 As PointF,
dir As SizeF,
ByRef box As RectangleF,
ByRef angle As Single,
ByRef sweep As Single
) As Boolean
Parameters
- p0
- Type: System.DrawingPointF
Start point of arc. - p1
- Type: System.DrawingPointF
End point of arc. - dir
- Type: System.DrawingSizeF
Tangent direction at start of arc. - box
- Type: System.DrawingRectangleF
Bounding box of arc (out) - angle
- Type: SystemSingle
Start angle of arc (out) - sweep
- Type: SystemSingle
Sweep angle of arc (out)
Return Value
Type:
BooleanTrue on success, false on failure.
See Also