Difference between revisions of "AdjustR"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function AdjustR(Angle, Adjustment: Extended): Extended; </source> ===Source=== <source lang="scar"> function AdjustR(Angle, Ad...")
 
(No difference)

Latest revision as of 17:23, 2 July 2011

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