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

AVL.RotatePoint

Rotates a point clockwise around a center point.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void RotatePoint
(
	AvlNet.Point2D inPoint,
	AvlNet.Point2D inCenter,
	float inAngle,
	bool inInverse,
	out AvlNet.Point2D outPoint
)

Parameters

Name Type Range Default Description
inPointAvlNet.Point2D
inCenterAvlNet.Point2DCenter of rotation.
inAnglefloatClockwise rotation angle.
inInverseboolSwitches to the inverse operation.
outPointAvlNet.Point2D

Examples

RotatePoint performed on the sample point, inCenter = (136.0, 135.0), inAngle = 180.0 and inInverse = False. The inCenter point is drawn on the first image in blue.

See also