DefinedAs - Maple Help

geom3d

 DefinedAs
 return the name of endpoints or vertices of a segment, a directed segment, or a triangle

 Calling Sequence DefinedAs(obj)

Parameters

 obj - segment, directed segment, triangle

Description

 • The routine returns the endpoints (for segment and directed segment), and vertices (for triangle) of obj.
 • The command with(geom3d,DefinedAs) allows the use of the abbreviated form of this command.

Examples

 > $\mathrm{with}\left(\mathrm{geom3d}\right):$
 > $\mathrm{point}\left(A,0,0,0\right),\mathrm{point}\left(B,1,1,1\right):$
 > $\mathrm{segment}\left(\mathrm{seg},\left[A,B\right]\right):$
 > $\mathrm{DefinedAs}\left(\mathrm{seg}\right)$
 $\left[{A}{,}{B}\right]$ (1)
 > $\mathrm{map}\left(\mathrm{coordinates},\right)$
 $\left[\left[{0}{,}{0}{,}{0}\right]{,}\left[{1}{,}{1}{,}{1}\right]\right]$ (2)
 > $\mathrm{point}\left(C,1,0,3\right):$
 > $\mathrm{triangle}\left(T,\left[A,B,C\right]\right):$
 > $\mathrm{DefinedAs}\left(T\right)$
 $\left[{A}{,}{B}{,}{C}\right]$ (3)
 > $\mathrm{map}\left(\mathrm{coordinates},\right)$
 $\left[\left[{0}{,}{0}{,}{0}\right]{,}\left[{1}{,}{1}{,}{1}\right]{,}\left[{1}{,}{0}{,}{3}\right]\right]$ (4)