Click or drag to resize

MathHelperFindEllipseFromPoints Method

Checks if a list of 2D points lies on an ellipse and retrieves its parameters.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.12.2
Syntax
public static bool FindEllipseFromPoints(
	List<Vector2> points,
	out Vector2 center,
	out double majorAxis,
	out double minorAxis,
	out double rotation,
	double tolerance = 1E-06
)

Parameters

points
Type: System.Collections.GenericListVector2
List of 2D points to check.
center
Type: DXFReaderNETVector2
The calculated center of the ellipse (output).
majorAxis
Type: SystemDouble
The calculated major axis length of the ellipse (output).
minorAxis
Type: SystemDouble
The calculated minor axis length of the ellipse (output).
rotation
Type: SystemDouble
The calculated rotation of the ellipse in degrees (output).
tolerance (Optional)
Type: SystemDouble
Tolerance for floating-point comparisons.

Return Value

Type: Boolean
True if the points lie on an ellipse, otherwise false.
See Also