Asymptote
| 此書為未開發的草稿或提綱。 您可以幫助開發作品,或者您可以在專案室中尋求幫助。 |

這是一份由使用者維護的關於Asymptote標記語言的參考。旨在為所有使用者提供有用的資源,從希望學習的新手到需要快速參考的老手。
本節應包含不同任務的方案。
請幫助建立命令頁面
asy -l <module> | grep '('
並將函式新增到命令頁面,並附帶資訊和示例。
這是預設的 Asymptote 基本檔案,定義了繪圖語言的關鍵部分(例如圖片結構)。預設情況下,在翻譯檔案和在互動模式下執行第一個命令之前,會隱式地進行私有匯入 plain;。這同樣適用於翻譯模組定義檔案(當然,翻譯 plain 時除外)。這意味著在 plain 中定義的型別和函式在幾乎所有 Asymptote 程式碼中都可以訪問。使用 -noautoplain 命令列選項可以停用此功能。
abort abs acos acosh add alias align all angle arc ArcArrow ArcArrows arcarrowsize arcdir arclength arcpoint arctime arrow Arrow arrow2 arrowhead arrowheadbbox Arrows arrowsize asin asinh ask atan atan2 atanh atexit attach AvantGarde axialshade azimuth bar Bar Bars barsize basealign baseline bbox BeginArcArrow BeginArrow BeginBar beginclip BeginDotMargin begingroup BeginMargin BeginPenMargin beginpoint Blank Bookman box cap cast cbrt cd ceil Ceil circle clear clip close cmyk colatitude colors complement concat conj controls copy cos cosh Courier cross csv cubiclength cubicroots curl cycle cyclic deconstruct defaultpen degrees Degrees dimension dir dirtime dot DotMargin DotMargins dotsize Dotted _draw draw Draw ecast ellipse empty EndArcArrow EndArrow EndBar endclip EndDotMargin endgroup endl EndMargin EndPenMargin endpoint eof eol erase erf erfc error _eval eval execute exitfunction exp expi fabs fft fill Fill filldraw fillrule filltype find finite firstcut floor Floor flush fmod font fontcommand fontsize format gamma getc getint getpair getreal getstring gouraudshade graphic gray grestore gsave gui GUI GUIop GUIreset Helvetica hypot identity image init initdefaults input insert inside interact interp intersect intersectionpoint inverse invisible italic J label Label labelmargin labels Landscape lastcut latitude latticeshade layer legend length line linecap linejoin lineskip linetype linewidth log log10 longitude Longitude makedraw makepen map margin Margin Margins marginT Mark marker marknodes markroutine markuniform math max maxbound maxcoords merge MidArcArrow MidArrow midpoint min minbound minipage NewCenturySchoolBook newpage nib NoFill NoMargin none None nullexitfcn orientation output overwrite Palatino pattern pause Pen PenMargin PenMargins point polar polygon Portrait postcontrol postscript pow10 precision precontrol prepend quadraticroots quiet quotient radialshade RadialShade rand read1 read2 read3 readGUI readline realmult rectify reflect relative
相對 - 指定相對位置。
relativedistance reldir relpoint reltime remainder replace resetdefaultpen restore restoredefaults reverse rfind rgb rotate round Round scale scroll search Seascape seek sequence sgn shift shiftless shipout sin single sinh size slant solve sort spec sqrt srand straight subpath substr suffix sum Symbol system tab tan tanh tell tension tex texify TeXify texpreamble time TimesRoman transpose tridiagonal trim TrueMargin unfill UnFill unit uptodate VERSION write xinput xoutput xpart xscale xtrans Y ypart yscale ytrans ZapfChancery ZapfDingbats zpart
此軟體包使用單純形法解決雙變數線性規劃問題。 它由模組 plain 用於自動調整圖片大小。
此軟體包使用點在多邊形內和相交演算法以及矩陣運算擴充套件了 Asymptote 的數學功能。
aCos aSin aTan Cos cot csc determinant drawline extension frac grid interpolate node nonsquare normal partialsum quadrant radians rectangular sec Sin slope square square2 square3 Tan unitnormal value zero zeta
此模組提供了幾何包的基礎。它目前包含三角形結構以及用於繪製三角形內弧和垂直符號的函式。
此包實現了一個高斯隨機數生成器以及一組統計例程,包括直方圖和最小二乘法。
Gaussian Gaussrand Gaussrandpair frequency halfbox histogram kurtosis kurtosisexcess leastsquares mean rms skewness stdev unitrand variance variancebiased
此包實現 Postscript 平鋪模式,幷包含一些方便的模式生成例程。
brick checker crosshatch hatch tile tiling
此包實現了一個動態二叉搜尋樹的示例。
這是一個簡單的樹繪製模組。
此包可用於繪製費曼圖。
currentarrow currentmomarrow do_overpaint drawDoubleLine drawFermion drawGhost drawGluon drawMomArrow drawPhoton drawScalar drawVertex drawVertexBox drawVertexBoxO drawVertexBoxX drawVertexO drawVertexOX drawVertexTriangle drawVertexTriangleO drawVertexX fmdefaults gluon momArrowPath momarrowsize photon texshipout
roundedpath
[edit | edit source]此包用於對路徑的銳角進行圓角處理。
pdfanim
[edit | edit source]此模組生成可移植的可點選高質量 PDF 動畫。
embed
[edit | edit source]此模組提供了一個介面,用於將 LaTeX 包用於將電影、聲音和 3D 物件嵌入到 PDF 文件中。
slide
[edit | edit source]此包提供了一個簡單但高質量的工具,用於製作簡報幻燈片,包括可移植的嵌入式 PDF 動畫。
background center checkposition equation figure incrementposition item newslide nextpage numberpage outline remark skip step subitem title titlepage vbox
MetaPost
[edit | edit source]此包提供了一些有用的例程,可以幫助 MetaPost 使用者將舊的 MetaPost 程式碼遷移到 Asymptote。
unicode
[edit | edit source]在檔案開頭匯入此包以指示 LaTeX 接受 unicode (UTF-8) 標準化國際字元。
latin1
[edit | edit source]如果您沒有安裝對 unicode 的 LaTeX 支援,可以透過匯入模組 latin1 來啟用對西歐語言 (ISO 8859-1) 的支援。
babel
[edit | edit source]此模組在 Asymptote 中實現了 LaTeX babel 包。
annotate
[edit | edit source]此模組支援使用 Adobe Reader 檢視的 PDF 註釋。
CAD
[edit | edit source]此包提供基本的筆定義和測量函式,用於根據 DIN 15 進行簡單的二維 CAD 繪圖。
graph
[edit | edit source]此包實現了二維線性和對數圖,包括自動刻度和刻度選擇。
Arc 底部 底部頂部 斷裂 圓形 格式 左 左右 左刻度 線性 對數 對數格式 無刻度 右 右刻度 縮放 樣條 直線 刻度 頂部 X等於 X零 Y等於 Y零 自動縮放 軸 軸 軸覆蓋 布林 範圍 檢查軸 條件 裁剪 除數 繪製刻度 錯誤條 錯誤條 圖形 連線 標註軸 標註刻度 標註x軸 標註y軸 限制 線性 對數軸覆蓋 下一個 極座標圖 科學記數法 次級X軸 次級Y軸 刻度 刻度最大值 刻度最小值 刻度標籤 刻度標籤偏移 刻度定位 刻度 上調 值時間 向量
向量場 - 在路徑上繪製向量場
x軸 x軸位置 x等於 x軸限制 x軸刻度 y軸 y軸位置 y等於 y軸限制 y軸刻度
調色盤
[edit | edit source]自動 藍白紅彩虹 藍白紅彩虹2 全部 灰度 調色盤刻度 彩虹 範圍 資料) 調色盤 範圍 轉置
三維
[edit | edit source]此模組將 Asymptote 中的引導和路徑概念完全擴充套件到三維。
acos1 aim alias aspect bbox3 cast concat controls copy curl3 cycle3 distort init intersection invert lookAt nodes nullpath3 oblique obliqueX obliqueY obliqueZ orthographic perspective plane project projection scale3 spec split splitCubic tension3 theta void xscale3 xypart yscale3 zscale3
光照
[edit | edit source]提供三維照明效果的簡單實現。
defaultshade defaultshading light shade
graph3
[edit | edit source]實現圖模組中函式的三維版本。
G Spline Straight autolimits dir graph graph3 join perpendicular phi polargraph projecttime surface v xcrop ycrop zaxis zcrop zlimits
實體
[edit | edit source]定義了一種旋轉結構,可用於填充和繪製旋轉曲面。
base cone cylinder perp revolution sphere tangent
曲面
[edit | edit source]用於繪製貝塞爾曲面的包,貝塞爾曲面是貝塞爾曲線的自然二維推廣。
featpost3D(已過時)
[edit | edit source]aCos angline anglinen aSin aTan bracket bstr cartaxes cb circleshadowpath coarse_line conorm Cos cot cover crossingpoint crossingpointf csc cstr determinant director_invisible doitnow draw_all_test draw_invisible drawline drawsegment ellipticpath ellipticshadowpath emptyline extension face face_drawfill face_invisible facepath faceraytrace faceshadowpath fieldlinepath fieldlinestep fill_faces fillfacewithlight flip frac generatedirface generatedirline generateonebiax getangle getanglepair getcossine getready goodcirclepath grid head_on_circle hexagonaltrimesh insidedge insidethisface insidethistriangle insideviewsphere insideviewtriangle interpolate kindofcube lineraytrace LinFunc magnetictrajectorypath makeface makeline masscenter maycrossviewplan maycrossviewplanf N ncrossprod nDotprod node nonsquare normal parSurFunc partialsum partrimesh pathofstraightline positivecharge produce_vga_border projectpoint ps quadrant radians rectangular resolvec rigorouscircle rigorouscone rigorousdisc rigorousfearpath rigorousfearshadowpath rp sec setthearena setthestage sharpraytrace signalshadowvertex signalvertex simplecar Sin slope smoothtorus spatialhalfcircle spatialhalfsfear square square2 square3 squareangline SurFunc Tan tdarrow themarkisinview trajectorypath tropicalglobe twocyclestogether unitnormal value VecFunc verygoodcone whatisthis X Z zero zeta
流程圖
[edit | edit source]提供輔助繪製流程圖的例程。
bevel diamond path rectangle roundrectangle
等高線
[edit | edit source]此包繪製等高線。