RotateSegment


Rotates a segment clockwise around a center point.

Syntax

C++
Python
 
def RotateSegment(
	inSegment: Segment2D,
	inAngle: float,
	/,
	*,
	inCenter: Point2D | None = None,
	inInverse: bool = False
)
-> outSegment: Segment2D

Parameters

Name Type Default Description
Input value inSegment Segment2D
Input value inCenter Point2D | None None Center of rotation (by default the mass center)
Input value inAngle float Clockwise angle of rotation
Input value inInverse bool False Switches to the inverse operation
Output value outSegment Segment2D