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

AVL.RotatePath Method

Rotates a path clockwise around a center point.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

public static void RotatePath(
	AvlNet.Path inPath,
	AvlNet.Point2D? inCenter,
	float inAngle,
	bool inInverse,
	out AvlNet.Path outPath
)

Parameters

Name Type Range Default Description
inPathAvlNet.PathInput path.
inCenterAvlNet.Point2D?Center of rotation (the mass center by default). Default value: atl::NIL, or null.
inAnglefloatClockwise rotation angle.
inInverseboolSwitches to the inverse operation.
outPathAvlNet.PathOutput path.

Examples

RotatePath run on the sample paths with inAngle = 90, inCenter = Nil.

See also