tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
14
Task/Ray-casting-algorithm/Ada/ray-casting-algorithm-1.ada
Normal file
14
Task/Ray-casting-algorithm/Ada/ray-casting-algorithm-1.ada
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
package Polygons is
|
||||
|
||||
type Point is record
|
||||
X, Y : Float;
|
||||
end record;
|
||||
type Point_List is array (Positive range <>) of Point;
|
||||
subtype Segment is Point_List (1 .. 2);
|
||||
type Polygon is array (Positive range <>) of Segment;
|
||||
|
||||
function Create_Polygon (List : Point_List) return Polygon;
|
||||
|
||||
function Is_Inside (Who : Point; Where : Polygon) return Boolean;
|
||||
|
||||
end Polygons;
|
||||
Loading…
Add table
Add a link
Reference in a new issue