Calling Sequence Segment(pt1, pt2)

Parameters

 pt1, pt2 - list or rtable containing two values or GridPoint object

Description

 • The Segment constructor generates and returns an object that represents a segment in 2-D space.
 • If the directed=true option is provided, this means that the segment is directed and grading takes into account the order of the points.

Examples

 > $\mathrm{with}\left(\mathrm{Grading}\right)$
 $\left[{\mathrm{AbsoluteValueFunction}}{,}{\mathrm{Draw}}{,}{\mathrm{ExponentialFunction}}{,}{\mathrm{GetData}}{,}{\mathrm{GetDomain}}{,}{\mathrm{GetExpression}}{,}{\mathrm{GradePlot}}{,}{\mathrm{GridPoint}}{,}{\mathrm{Inequalities}}{,}{\mathrm{LinearFunction}}{,}{\mathrm{LogarithmicFunction}}{,}{\mathrm{QuadraticFunction}}{,}{\mathrm{Quiz}}{,}{\mathrm{Segment}}\right]$ (1)
 > $\mathrm{Segment}\left(\left[3.5,-2.0\right],\left[8.2,4.6\right]\right)$
 ${\mathrm{<< Segment: \left[\left[3.5, -2.0\right], \left[8.2, 4.6\right]\right]>>}}$ (2)