InCircle

From SCAR Divi Manual
Revision as of 15:33, 25 June 2011 by Freddy (talk | contribs) (Created page with "==Definition== <func>function InCircle(x, y, mx, my, r: Integer): Boolean;</func> ==Availability== SCAR Divi 3.00 > Current ==Description== This function determines whether a c...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

<func>function InCircle(x, y, mx, my, r: Integer): Boolean;</func>

Availability

SCAR Divi 3.00 > Current

Description

This function determines whether a coordinate specified by (x, y) can be found inside or on top of a circle specified by the midpoint (mx, my) and the radius r. If the coordinate is outside of the circle, False is returned.

Example

begin
  if InCircle(1, 1, 2, 2, 2) then
    WriteLn('The point can be found in or on the circle')
  else
    WriteLn('The point is outside the circle');
end.

Output:

The point can be found in or on the circle

See Also