From e7892f0f87a9258d3b45e9d0cf674ce142f761eb Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Fri, 18 Nov 2022 02:40:52 +1300 Subject: Refactored code into appropriate packages --- src/datatypes.adb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/datatypes.adb (limited to 'src/datatypes.adb') diff --git a/src/datatypes.adb b/src/datatypes.adb new file mode 100644 index 0000000..64ff017 --- /dev/null +++ b/src/datatypes.adb @@ -0,0 +1,15 @@ + +package body Datatypes is + + + function Create + (X, Y : Quantity; + Solid : in Boolean) + return Particle is + begin + return (Place => Plane.Compose_From_Cartesian (X, Y), Solid => Solid, others => <>); + end Create; + + +end Datatypes; + -- cgit