PolyhedralSets - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Mathematics : Geometry : Polyhedral Sets : Transforming Sets : PolyhedralSets/Translate

PolyhedralSets

 Translate
 translate a polyhedral set

 Calling Sequence Translate(polyset, trans)

Parameters

 polyset - polyhedral set trans - polyhedral set representing a vertex, list of rationals, Vector or list/set of equations of the form coordinate = value; translation vector

Description

 • This command translates the polyhedral set polyset according to trans.

Examples

 > $\mathrm{with}\left(\mathrm{PolyhedralSets}\right):$

Translate the cube by $\left[4,4,4\right]$.

 > $c≔\mathrm{ExampleSets}:-\mathrm{Cube}\left(\right)$
 ${c}{≔}{{}\begin{array}{lll}{\mathrm{Coordinates}}& {:}& \left[{{x}}_{{1}}{,}{{x}}_{{2}}{,}{{x}}_{{3}}\right]\\ {\mathrm{Relations}}& {:}& \left[{-}{{x}}_{{3}}{\le }{1}{,}{{x}}_{{3}}{\le }{1}{,}{-}{{x}}_{{2}}{\le }{1}{,}{{x}}_{{2}}{\le }{1}{,}{-}{{x}}_{{1}}{\le }{1}{,}{{x}}_{{1}}{\le }{1}\right]\end{array}$ (1)
 > $\mathrm{c_trans}≔\mathrm{Translate}\left(c,\left[4,4,4\right]\right)$
 ${\mathrm{c_trans}}{≔}{{}\begin{array}{lll}{\mathrm{Coordinates}}& {:}& \left[{{x}}_{{1}}{,}{{x}}_{{2}}{,}{{x}}_{{3}}\right]\\ {\mathrm{Relations}}& {:}& \left[{-}{{x}}_{{3}}{\le }{-3}{,}{{x}}_{{3}}{\le }{5}{,}{-}{{x}}_{{2}}{\le }{-3}{,}{{x}}_{{2}}{\le }{5}{,}{-}{{x}}_{{1}}{\le }{-3}{,}{{x}}_{{1}}{\le }{5}\right]\end{array}$ (2)
 > $\mathrm{Plot}\left(\left[c,\mathrm{c_trans}\right],\mathrm{orientation}=\left[20,78,0\right]\right)$

Compatibility

 • The PolyhedralSets[Translate] command was introduced in Maple 2015.
 • For more information on Maple 2015 changes, see Updates in Maple 2015.

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam