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
)
Public Shared Function PointsOnArc (
Vertexes As List(Of Vector2),
<OutAttribute> ByRef center As Vector2,
<OutAttribute> ByRef radius As Double,
<OutAttribute> ByRef startAngle As Double,
<OutAttribute> ByRef endAngle As Double
) As Boolean
public:
static bool PointsOnArc(
List<Vector2>^ Vertexes,
[OutAttribute] Vector2% center,
[OutAttribute] double% radius,
[OutAttribute] double% startAngle,
[OutAttribute] double% endAngle
)
static member PointsOnArc :
Vertexes : List<Vector2> *
center : Vector2 byref *
radius : float byref *
startAngle : float byref *
endAngle : float byref -> bool
STATIC METHOD PointsOnArc(
Vertexes AS List<Vector2>,
center OUT Vector2,
radius OUT REAL8,
startAngle OUT REAL8,
endAngle OUT REAL8
) AS LOGIC
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:
BooleanTrue if the vertexes form an arc, false otherwise.
See Also