The object Segment2D is a type, with ancestor classes GraphicPrimitive < BasicList < Thing.
The source of this document is in Graphics.m2:589:0.