You are here: Start » AVL.NET » Function Reference » Region » Region Features » 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 | |
---|---|---|---|---|---|
![]() | inRegion | AvlNet.Region | Input region. | ||
![]() | outMajorAxis | AvlNet.Segment2D | |||
![]() | outMinorAxis | AvlNet.Segment2D |
Description
The orientations of the resulting axes are always between 0 and 180 degrees.
Examples
![](../img/filters/RegionEllipticAxes.png)
RegionEllipticAxes performed on a sample region.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty region on input in RegionEllipticAxes. |