  */
 agi_raySegmentCollection agi_raySegmentCollectionNew(agi_raySegment segment)
 {
-    agi_raySegmentCollection i;
-    i.intervals[0] = segment;
-    i.count = 1;
+	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;
}


 */
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);
	return i;
}

///////////////////////////////////////////////////////////////////////////////
