[Overview][Types][Procedures and functions][Index] Reference for unit 'GraphMath' (#lazutils)

RotateRect

Rotates a rectangle with the specified dimensions by the specified angle (in radians).

Declaration

Source position: graphmath.pp line 105

function RotateRect(

  AWidth: Integer;

  AHeight: Integer;

  AAngle: Double

):TRect;

Arguments

AWidth

  

Width for the rectangle.

AHeight

  

Height for the rectangle.

AAngle

  

Rotation angle in radians.

Function result

The smallest TRect which contains the rotated rectangle.

Description

Rotates the rectangle (0, 0, AWidth, AHeight) around its top-left corner (0,0) by the angle in AAngle (in radians). Note that y points downwards.


Version 4.0 Generated 2025-05-03 Home