You are here: Start » AVL.NET » AVL.RegionEllipticAxes Method

AVL.RegionEllipticAxes Method

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

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.

See also