You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » AVL.TrimPathToRectangle

AVL.TrimPathToRectangle

Creates a path contained in a rectangle from another path.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void TrimPathToRectangle
(
	AvlNet.Path inPath,
	AvlNet.Rectangle2D inRectangle,
	AvlNet.TrimPathMethod inTrimPathMethod,
	AvlNet.Path outPath
)

Parameters

Name Type Range Default Description
inPathAvlNet.PathInput path.
inRectangleAvlNet.Rectangle2D
inTrimPathMethodAvlNet.TrimPathMethodPointToPointDefault value: PointToPoint.
outPathAvlNet.PathOutput path.

Errors

List of possible exceptions:

Error type Description
DomainError Unknown method for cropping a path in TrimPathToRectangle.

See also