You are here: Start » AVL.NET » Function Reference » Region » Region Features » AVL.RegionEllipticAxes

AVL.RegionEllipticAxes

Computes axes of an ellipse having the same first and second order moments as the given region.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void RegionEllipticAxes
(
	AvlNet.Region inRegion,
	out AvlNet.Segment2D outMajorAxis,
	out AvlNet.Segment2D outMinorAxis
)

Parameters

Name Type Range Default Description
inRegionAvlNet.RegionInput region.
outMajorAxisAvlNet.Segment2D
outMinorAxisAvlNet.Segment2D

Description

The orientations of the resulting axes are always between 0 and 180 degrees.

Examples

RegionEllipticAxes performed on a sample region.

Errors

List of possible exceptions:

Error type Description
DomainError Empty region on input in RegionEllipticAxes.

See also