TrigSegmentCurve Method

Segment a curve into individual lines.

Definition

Namespace: Geometry
Assembly: Geometry (in Geometry.dll) Version: 25.2414.4032
C#
public static List<FPoint> SegmentCurve(
	FPoint centerPoint,
	float radius,
	float startAngle,
	float sweepAngle,
	float stepAngle
)

Parameters

centerPoint  FPoint
Coordinates of the center of the curve.
radius  Single
Radius of the curve.
startAngle  Single
Angle at which the curve starts, in degrees.
sweepAngle  Single
Sweep of the curve, in degrees, in counter-clockwise motion. If negative, the sweep is clockwise.
stepAngle  Single
Angle of each generated segment from the last, in degrees.

Return Value

ListFPoint
Collection of points, including the start and end.

Remarks

All increasing sweeps are counted in incrementing steps while all decreasing sweeps are counted in decrementing steps. If you need for the ray to pass through the 0 point during generation, as in 350 to 10 in a decreasing direction, or 10 to 350 in an increasing direction, then set the destination angle higher than 360 or less than 0, as appropriate for the direction of cast, respectively.

See Also