Sign in Join
FPDoc Onlineexperiment

RotatePoint function

In unit GraphMath

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

Declaration

pascal
function RotatePoint(const APoint: TPoint; AAngle: Double): TPoint

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.

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.