You are here: Start » AVL.NET » AVL.RotateSegment(AvlNet.Segment2D, AvlNet.Point2D?, float, bool, AvlNet.Segment2D)

AVL.RotateSegment(AvlNet.Segment2D, AvlNet.Point2D?, float, bool, AvlNet.Segment2D)

Rotates a segment clockwise around a center point.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax


public static void RotateSegment(
	AvlNet.Segment2D inSegment,
	AvlNet.Point2D? inCenter,
	float inAngle,
	bool inInverse,
	out AvlNet.Segment2D outSegment
)

Parameters

inSegment
Type: AvlNet.Segment2D
inCenter
Type: System.Nullable<AvlNet.Point2D>
Center of rotation (by default the mass center), or null.
inAngle
Type: System.Single
Clockwise angle of rotation
inInverse
Type: System.Boolean
Switches to the inverse operation
outSegment
Type: AvlNet.Segment2D

Examples

RotateSegment performed on the sample segment, inCenter = Auto, inAngle = 70.0 and inInverse = False.

See also