/[escript]/trunk/doc/user/pycad.tex
ViewVC logotype

Diff of /trunk/doc/user/pycad.tex

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2483 by gross, Tue May 19 10:04:54 2009 UTC revision 2484 by gross, Mon Jun 22 04:22:19 2009 UTC
# Line 278  resize them. Line 278  resize them.
278    
279  \begin{classdesc}{Translation}{\optional{b=[0,0,0]}}  \begin{classdesc}{Translation}{\optional{b=[0,0,0]}}
280  defines a translation $x \to x+b$. \var{b} can be any object that can be converted  defines a translation $x \to x+b$. \var{b} can be any object that can be converted
281  into a \numarray object of shape $(3,)$.  into a \numpy object of shape $(3,)$.
282  \end{classdesc}  \end{classdesc}
283                                
284  \begin{classdesc}{Rotatation}{\optional{axis=[1,1,1], \optional{ point = [0,0,0], \optional{angle=0*RAD} } } }  \begin{classdesc}{Rotatation}{\optional{axis=[1,1,1], \optional{ point = [0,0,0], \optional{angle=0*RAD} } } }
285  defines a rotation by \var{angle} around axis through point \var{point} and direction \var{axis}.  defines a rotation by \var{angle} around axis through point \var{point} and direction \var{axis}.
286  \var{axis} and \var{point} can be any object that can be converted  \var{axis} and \var{point} can be any object that can be converted
287  into a \numarray object of shape $(3,)$.  into a \numpy object of shape $(3,)$.
288  \var{axis} does not have to be normalized but must have positive length. The right hand rule~\cite{RIGHTHANDRULE}  \var{axis} does not have to be normalized but must have positive length. The right hand rule~\cite{RIGHTHANDRULE}
289  applies.  applies.
290  \end{classdesc}  \end{classdesc}
# Line 294  applies. Line 294  applies.
294  defines a dilation by the expansion/contraction \var{factor} with  defines a dilation by the expansion/contraction \var{factor} with
295  \var{center} as the dilation center.  \var{center} as the dilation center.
296  \var{center} can be any object that can be converted  \var{center} can be any object that can be converted
297  into a \numarray object of shape $(3,)$.  into a \numpy object of shape $(3,)$.
298  \end{classdesc}  \end{classdesc}
299    
300  \begin{classdesc}{Reflection}{\optional{normal=[1,1,1], \optional{offset=0}}}  \begin{classdesc}{Reflection}{\optional{normal=[1,1,1], \optional{offset=0}}}
301  defines a reflection on a plane defined in normal form $n^t x = d$  defines a reflection on a plane defined in normal form $n^t x = d$
302  where $n$ is the surface normal \var{normal} and $d$ is the plane \var{offset}.  where $n$ is the surface normal \var{normal} and $d$ is the plane \var{offset}.
303  \var{normal} can be any object that can be converted  \var{normal} can be any object that can be converted
304  into a \numarray object of shape $(3,)$.  into a \numpy object of shape $(3,)$.
305  \var{normal} does not have to be normalized but must have positive length.  \var{normal} does not have to be normalized but must have positive length.
306  \end{classdesc}  \end{classdesc}
307    

Legend:
Removed from v.2483  
changed lines
  Added in v.2484

  ViewVC Help
Powered by ViewVC 1.1.26