AdjustR

From SCAR Divi Manual
Revision as of 16:23, 2 July 2011 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function AdjustR(Angle, Adjustment: Extended): Extended; </source> ===Source=== <source lang="scar"> function AdjustR(Angle, Ad...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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