You are here: Start » AVL.NET » Function Reference » Path » Path Global Transforms » AVL.StretchPath

AVL.StretchPath

Moves, rotates and scales the path so that its end-points end up at the given two points.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void StretchPath
(
	AvlNet.Path inPath,
	AvlNet.Point2D inNewEndpoint1,
	AvlNet.Point2D inNewEndpoint2,
	AvlNet.Path outPath
)

Parameters

Name Type Range Default Description
inPathAvlNet.PathInput path, must be open.
inNewEndpoint1AvlNet.Point2DNew starting point of the path.
inNewEndpoint2AvlNet.Point2DNew ending point of the path.
outPathAvlNet.PathOutput path.

Errors

List of possible exceptions:

Error type Description
DomainError Path cannot be closed in StretchPath.
DomainError Path too short in Stretch Path.

See also