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...")
 
(Example)
 
Line 21: Line 21:
 
<source lang="scar">
 
<source lang="scar">
 
begin
 
begin
   WriteLn(AdjustD(360, 25));
+
   WriteLn(AdjustD(359, 26));
 
end.
 
end.
 
</source>
 
</source>

Latest revision as of 09: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(359, 26));
end.

Output:

25

See Also