     return i;
 }
 
-/**
- * DOC_TBA
- *
- * @name agi_raySegmentCollectionNew
- * @glslFunction
- *
- */
 agi_raySegmentCollection agi_raySegmentCollectionNew(agi_raySegment segment)
 {
     agi_raySegment intervals[agi_raySegmentCollectionCapacity];

    return s;
}

/**
 * DOC_TBA
 *
 * @name agi_intersection
 */
agi_raySegmentCollection agi_intersection(agi_raySegmentCollection left, agi_raySegment right)
{
    if (left.count == 1)

    ++collection.count;
}

void agi_insertAt(inout agi_raySegmentCollection collection, agi_raySegmentCollection segments, int index)
{
    if (segments.count == 1)
