Segment - Maple Help

# Online Help

###### All Products    Maple    MapleSim

Grading

 Segment

 Calling Sequence Segment(pt1, pt2)

Parameters

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

Options

 • directed : indicates directed segment; default is false

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{IsQuadraticFormula}}{,}{\mathrm{LinearFunction}}{,}{\mathrm{LogarithmicFunction}}{,}{\mathrm{QuadraticFunction}}{,}{\mathrm{Quiz}}{,}{\mathrm{Segment}}{,}{\mathrm{SolveFeedback}}{,}{\mathrm{SolvePractice}}\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)

Compatibility

 • The Grading:-Segment command was introduced in Maple 18.
 • For more information on Maple 18 changes, see Updates in Maple 18.

 See Also