next | previous | forward | backward | up | top | index | toc | Macaulay2 website
Graphics :: segment(Point2D,Point2D)

segment(Point2D,Point2D) -- a line segment from two points

Synopsis

Description

i1 : p=point(2.1, 3.)

o1 = Point2D{2, 3}

o1 : Point2D
i2 : q=point(.4, 4.6)

o2 = Point2D{0, 5}

o2 : Point2D
i3 : segment(p,q)

o3 = Segment2D{Point2D{2, 3}, Point2D{0, 5}}

o3 : Segment2D