Difference between revisions of "AdjustD"

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

Revision as of 08:50, 28 June 2011

Definition

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

Source

function AdjustD(Angle, Adjustment: Extended): Extended;
begin
  Result := FixD(Angle + Adjustment);
end;

Availability

SCAR Divi 3.00 > Current

Description

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

Example

begin
  WriteLn(AdjustD(360, 25));
end.

Output:

25

See Also