You are here: Start » AVL.NET » Invoke.RotateSegment

Invoke.RotateSegment

Rotates a segment clockwise around a center point.

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void RotateSegment
(
	Avl.Segment2D inSegment,
	Optional<Avl.Point2D> inCenter,
	float inAngle,
	bool inInverse,
	out Avl.Segment2D outSegment
)

Parameters

Name Type Range Default Description
inSegmentAvl.Segment2D
inCenterAtl.Optional<Avl.Point2D>Center of rotation (by default the mass center). Default value: atl::NIL.
inAnglefloatClockwise angle of rotation.
inInverseboolSwitches to the inverse operation.
outSegmentAvl.Segment2D

See also