Back to FabImage Library website

You are here: Start » Function Reference » Path » Path Spatial Transforms » RotatePath

RotatePath


Header: FIL.h
Namespace: fil
Module: FoundationLite

Rotates a path clockwise around a center point.

Syntax

C++
C#
 
void fil::RotatePath
(
	const fil::Path& inPath,
	ftl::Optional<const fil::Point2D&> inCenter,
	float inAngle,
	bool inInverse,
	fil::Path& outPath
)

Parameters

Name Type Default Description
Input value
inPath const Path& Input path
Input value
inCenter Optional<const Point2D&> NIL Center of rotation (the mass center by default)
Input value
inAngle float Clockwise rotation angle
Input value
inInverse bool Switches to the inverse operation
Output value
outPath Path& Output path

In-place Processing

This function supports in-place data processing - you can pass the same reference to inPath and outPath

Read more about In-place Computation.

Examples

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

See Also

  • AlignPath – Moves a path from a local coordinate system to the absolute one.