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

RotatePoint

Rotates a point around the origin by the specified angle (in radians).

Declaration

Source position: graphmath.pp line 104

function RotatePoint(

  const APoint: TPoint;

  AAngle: Double

):TPoint;

Arguments

APoint

  

TPoint with coordinates rotated in the routine.

AAngle

  

Rotation angle in radians.

Function result

TPoint with the coordinates after rotation.

Description

Rotates a point around the origin (0,0) by the angle in AAngle. The angle is in radians and positive for counter-clockwise rotation. Note that y points downwards.


Version 4.0 Generated 2025-05-03 Home