Files
2024-02-19 00:21:16 -05:00

298 lines
5.3 KiB
TeX

%%% File: objects.tex
%%%
\input mfpic
\magnification=\magstep1
\opengraphsfile{objs}
{\sl Points, Lines, and Arrows.}
\nobreak\noindent Point:
\picture[15]{0}{1}{0}{1}
\point{(0.5,0.5)}
\endpicture
\noindent Line segment:
\picture[15]{0}{2}{0}{1}
\line{(0,0.25),(2,0.75)}
\endpicture
\noindent Arrow:
\picture[15]{0}{2}{0}{1}
\arrow{(0,0.25),(2,0.75)}
\endpicture
\noindent Dotted line segment:
\picture[15]{0}{2}{0}{1}
\dottedline{(0,0.25),(2,0.75)}
\endpicture
\noindent Dotted arrow:
\picture[15]{0}{2}{0}{1}
\dottedarrow{(0,0.25),(2,0.75)}
\endpicture
\vskip5pt
{\sl Axes and Axis Marks.}
\nobreak\noindent Axes:
\noindent
\picture[15][20]{-2}{2}{-2}{2}
\axes
\endpicture
\noindent Axis marks:
\noindent
\picture[15][20]{-2}{2}{-2}{2}
\axes
\xmarks{-1,1}
\ymarks{-1,1}
\endpicture
\vskip5pt
{\sl Polygons.}
\nobreak\noindent Rectangle:
\picture[15]{0}{1}{0}{1}
\rect{(0,0),(0.8,1)}
\endpicture
\noindent Dotted rectangle:
\picture[20]{0}{1}{0}{1}
\dottedrect{(0,0),(0.8,1)}
\endpicture
\noindent Block:
\picture[15]{0}{1}{0}{1}
\block{(0,0),(0.8,1)}
\endpicture
\noindent Shaded rectangle:
\picture[15]{0}{1}{0}{1}
\rectshade{(0,0),(0.8,1)}
\endpicture
\noindent Polygon:
\picture[20]{0}{2}{0}{1}
\polygon{(0,0),(0,0.5),(1,1),(1.5,0.5),(1,0.5)}
\endpicture
\noindent Shaded polygon:
\picture[20]{0}{2}{0}{1}
\polyshade{(0,0),(0,0.5),(1,1),(1.5,0.5),(1,0.5)}
\endpicture
\noindent Filled polygon:
\picture[20]{0}{2}{0}{1}
\polyfill{(0,0),(0,0.5),(1,1),(1.5,0.5),(1,0.5)}
\endpicture
\vskip5pt
{\sl Circles and Ellipses.}
\nobreak\noindent Circle:
\picture[15]{0}{1}{0}{1}
\circle{(0.5,0.5),0.5}
\endpicture
\noindent Shaded circle:
\picture[15]{0}{1}{0}{1}
\circshade{(0.5,0.5),0.5}
\endpicture
\noindent Filled circle:
\picture[15]{0}{1}{0}{1}
\cdisk{(0.5,0.5),0.5}
\endpicture
\noindent Ellipse:
\picture[15]{0}{2}{0}{1}
\ellipse{(1,0.5),1,0.5}
\endpicture
\noindent Shaded ellipse:
\picture[15]{0}{2}{0}{1}
\ellshade{(1,0.5),1,0.5}
\endpicture
\noindent Filled ellipse:
\picture[15]{0}{2}{0}{1}
\edisk{(1,0.5),1,0.5}
\endpicture
\noindent Rotated ellipse:
\picture[15]{0}{2}{0}{1}
\rotatedellipse{(1,0.5),1,0.4,15}
\endpicture
\noindent Shaded rotated ellipse:
\picture[15]{0}{2}{0}{1}
\rotatedellshade{(1,0.5),1,0.4,15}
\endpicture
\noindent Filled rotated ellipse:
\picture[15]{0}{2}{0}{1}
\rotatededisk{(1,0.5),1,0.4,15}
\endpicture
\vskip5pt
{\sl Circular Arcs.}
\nobreak\noindent Circular arc:
\picture[15]{0}{2}{0}{1}
\arc{(0,0.8),(2,0.8),90}
\endpicture
\noindent Circular arc arrow:
\picture[15]{0}{2}{0}{1}
\arcarrow{(0,0.8),(2,0.8),90}
\endpicture
\noindent Shaded circular arc:
\picture[15]{0}{2}{0}{1}
\arcshade{(0,0.8),(2,0.8),90}
\endpicture
\noindent Filled circular arc:
\picture[15]{0}{2}{0}{1}
\arcfill{(0,0.8),(2,0.8),90}
\endpicture
\vskip5pt
{\sl Polar coordinates.}
\nobreak\noindent Line segment:
\picture[15]{0}{2}{0}{1}
\linedir{(0,0.2),20,2}
\endpicture
\noindent Arrow:
\picture[15]{0}{2}{0}{1}
\arrowdir{(0,0.2),20,2}
\endpicture
\noindent Circular arc:
\picture[15]{0}{1}{0}{1}
\arcth{(0,0),0,75,1}
\endpicture
\noindent Circular arc arrow:
\picture[15]{0}{1}{0}{1}
\arctharrow{(0,0),0,75,1}
\endpicture
\noindent Shaded wedge:
\picture[15]{0}{1}{0}{1}
\wedgeshade{(0,0),0,75,1}
\endpicture
\noindent Filled wedge:
\picture[15]{0}{1}{0}{1}
\wedgefill{(0,0),0,75,1}
\endpicture
\vskip5pt
{\sl Curves.}
\nobreak\noindent Curve:
\picture[15]{0}{2}{0}{1}
\curve{(0,0.25), (1,0.75), (1,0.25), (2,0.75)}
\endpicture
\noindent Polygonal curve:
\picture[15]{0}{2}{0}{1}
\polycurve{(0,0.25), (1,0.75), (1,0.25), (2,0.75)}
\endpicture
\noindent Curved arrow:
\picture[15]{0}{2}{0}{1}
\curvedarrow{(0,0.25), (1,0.75), (1,0.25), (2,0.75)}
\endpicture
\noindent Polygonal curve arrow:
\picture[15]{0}{2}{0}{1}
\polyarrow{(0,0.25), (1,0.75), (1,0.25), (2,0.75)}
\endpicture
\vskip5pt
{\sl Cyclic Curves.}
\nobreak\noindent Cyclic curve:
\picture[20]{0}{2}{0}{1}
\cyclic{(0.5,0),(0,0.3),(0.5,0.8),(1.5,0.8),(2.0,0.3),(1.5,0),(1.0,0.3)}
\endpicture
\noindent Shaded cyclic curve:
\picture[20]{0}{2}{0}{1}
\cycleshade{(0.5,0),(0,0.3),(0.5,0.8),(1.5,0.8),(2.0,0.3),(1.5,0),(1.0,0.3)}
\endpicture
\noindent Filled cyclic curve:
\picture[20]{0}{2}{0}{1}
\cyclefill{(0.5,0),(0,0.3),(0.5,0.8),(1.5,0.8),(2.0,0.3),(1.5,0),(1.0,0.3)}
\endpicture
\vskip5pt
{\sl Functions.}
\nobreak\noindent Function plot:
\picture[20]{0}{1}{0}{1}
\function{0,1,0.125,sind(x*180)}
\endpicture
\noindent Polygonal function plot:
\picture[20]{0}{1}{0}{1}
\polyfunction{0,1,0.125,sind(x*180)}
\endpicture
\noindent Parametric function plot:
\picture[20]{0}{1}{0}{1}
\parafcn{0,1,0.125,(sind(180*t)*cosd(90*t),sind(180*t)*sind(90*t))}
\endpicture
\noindent Polygonal parametric function plot:
\picture[20]{0}{1}{0}{1}
\polyparafcn{0,1,0.125,(sind(180*t)*cosd(90*t),sind(180*t)*sind(90*t))}
\endpicture
\noindent Shading between functions:
\picture[20]{0}{1}{0}{1}
\shadefcn{0,0.7}{x**2}{sind(x*180)}
\endpicture
\vskip5pt
{\sl Labels and Captions.}
\nobreak\noindent Label:
\noindent
\picture[20]{-1}{1}{-1}{1}
\circle{(0,0),1}
\point{(0,0)}
\point{(0.333,0.333)}
\point{(-0.333,0.333)}
\arc{(-0.333,-0.333),(0.333,-0.333),60}
\arrow{(1,0.5),(0.1,0)}
\label{1}{0.5}{nose}
\endpicture
\noindent Caption:
\noindent
\picture[20]{-1}{1}{-1}{1}
\circle{(0,0),1}
\point{(0,0)}
\point{(0.333,0.333)}
\point{(-0.333,0.333)}
\arc{(-0.333,-0.333),(0.333,-0.333),60}
\caption{Smile!}
\endpicture
\closegraphsfile
\end