  */
 agi_raySegmentCollection agi_raySegmentCollectionNew(agi_raySegment first, agi_raySegment second)
 {
-    agi_raySegment intervals[agi_raySegmentCollectionCapacity];
-    intervals[0] = first;
-    intervals[1] = second;
-    agi_raySegmentCollection i = agi_raySegmentCollection(intervals, 2);
+    agi_raySegmentCollection i;
+    i.intervals[0] = first;
+    i.intervals[1] = second;
+    i.count = 2;
     return i;
 }
 

 */
agi_raySegmentCollection agi_raySegmentCollectionNew(agi_raySegment segment)
{
    agi_raySegment intervals[agi_raySegmentCollectionCapacity];
    intervals[0] = segment;
    agi_raySegmentCollection i = agi_raySegmentCollection(intervals, 1);
    return i;
}


 */
agi_raySegmentCollection agi_raySegmentCollectionNew()
{
    agi_raySegmentCollection i;
    i.count = 0;
    return i;
}

