Click or drag to resize

MathHelperPointsOnArc Method

Determines if a group of 2D vertices belong to an arc. If the vertices do form an arc, the method calculates and returns the center, radius, start angle, and end angle of the arc.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.12.2
Syntax
public static bool PointsOnArc(
	List<Vector2> Vertexes,
	out Vector2 center,
	out double radius,
	out double startAngle,
	out double endAngle
)

Parameters

Vertexes
Type: System.Collections.GenericListVector2
A list of Vector2 objects representing the 2D vertices to be checked.
center
Type: DXFReaderNETVector2
An output parameter of type Vector2 that will hold the center of the arc if the vertices form an arc.
radius
Type: SystemDouble
An output parameter of type double that will hold the radius of the arc if the vertices form an arc.
startAngle
Type: SystemDouble
An output parameter of type double that will hold the start angle of the arc if the vertices form an arc.
endAngle
Type: SystemDouble
An output parameter of type double that will hold the end angle of the arc if the vertices form an arc.

Return Value

Type: Boolean
True if the vertexes form an arc, false otherwise.
See Also