AdjustR

From SCAR Divi Manual
Jump to: navigation, search

Definition

function AdjustR(Angle, Adjustment: Extended): Extended;

Source

function AdjustR(Angle, Adjustment: Extended): Extended;
begin
  Angle := Angle + Adjustment;
  Result := FixR(Angle);
end;

Availability

SCAR Divi 3.00 > Current

Description

Adjusts an angle specified by Angle in radians by adding the value specified in Adjustment and then "fixing" the angle by running it through FixR.

Example

begin
  WriteLn(AdjustR(2 * Pi, 1));
end.

Output:

1

See Also