You are here: Start » AVL.NET » AVL.ShapeEllipticAxes(AvlNet.Path, AvlNet.Segment2D, AvlNet.Segment2D)

AVL.ShapeEllipticAxes(AvlNet.Path, AvlNet.Segment2D, AvlNet.Segment2D)

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void ShapeEllipticAxes(
	AvlNet.Path inShape,
	out AvlNet.Segment2D outMajorAxis,
	out AvlNet.Segment2D outMinorAxis
)

Parameters

inShape
Type: AvlNet.Path
outMajorAxis
Type: AvlNet.Segment2D
outMinorAxis
Type: AvlNet.Segment2D

Description

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

Note that if the input path is not a valid shape (i.e. it has at least one self-intersection), the computation may lead to results that are not intuitive.

See also