前言介紹
- 這款 WordPress 外掛「CFF Area and Perimeter Operations」是 2023-01-15 上架。
- 目前有 10 個安裝啟用數。
- 上一次更新是 2025-04-08,距離現在已有 26 天。
- 外掛最低要求 WordPress 4.4 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.4 以上。
- 有 1 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
2d | area | figure | music cff | perimeter |
內容簡介
該外掛實現了“面積和周長”操作模塊,可從“計算字段表單”插件的方程式中使用。 “計算字段表單”插件是一個具有很大潛力的表單生成器,其“計算”控件是其巨大優勢之一。它允許您輸入數學公式,確定地址之間的距離,繪製圖形,處理日期,管理文件以及其他許多操作。
“CFF面積和周長運算”插件進一步增強了“計算字段表單”插件的可能性,包括計算正方形、三角形、菱形、圓形、橢圓甚至更重要的是正規和不規則多邊形的面積和周長等操作。該插件包括的面積和周長操作如下:
NVERTICESAREA:根據其頂點計算2D圖形的面積。頂點是x,y坐標的一對。如果參數無效或不足,操作將返回null。
例如:NVERTICESAREA([4,10],[9,7],[11,2],[2,2]) 結果:45.5
NVERTICESPERIMETER:根據其頂點計算2D圖形的周長。頂點是x,y坐標的一對。如果參數無效或不足,操作將返回null。
例如:NVERTICESPERIMETER([4,10],[9,7],[11,2],[2,2]) 結果:28.46
NSIDESAREA:根據其邊計算2D圖形的面積。邊只能是數字。如果參數無效或不足,或者它不是多邊形,操作將返回null。對於不規則多邊形,操作返回最大面積。
例如:NSIDESAREA(9,8,9,20) 結果:93.91
NSIDESPERIMETER:根據其邊計算2D圖形的周長。邊只能是數字。如果參數無效或不足,或者它不是多邊形,操作將返回null。
例如:NSIDESPERIMETER(9,8,9,20) 結果:46
SQUAREAREA:計算正方形的面積。接受正方形邊長作為參數。如果參數不是數字,操作將返回null。
例如:SQUAREAREA(9) 結果:81
SQUAREPERIMETER:計算正方形的周長。接受正方形邊長作為參數。如果參數不是數字,操作將返回null。
例如:SQUAREPERIMETER(9) 結果:36
TRIANGLEAREA:根據其底和高計算三角形的面積。如果參數不是數字,操作將返回null。
例如:TRIANGLEAREA(4,5) 結果:10
TRIANGLEPERIMETER:根據兩邊或三邊計算三角形的周長。如果只傳遞兩個参数作為邊長,插件假定它是直角三角形,並計算其斜邊。如果參數不是數字,操作將返回null。
例如:TRIANGLEAREA(3,4) 結果:12
例如:TRIANGLEAREA(3,4,5) 結果:12
RHOMBUSAREA:根據其對角線計算菱形的面積。如果參數不是數字,操作將返回null。
例如:RHOMBUSAREA(3,4) 結果:6
RHOMBUSPERIMETER:根據其邊或對角線計算菱形面積的周長。如果向RHOMBUSPERIMETER操作傳遞兩個參數,它假定它們是菱形對角線。如果參數不是數字,操作將返回null。
例如:RHOMBUSPERIMETER(6,8) 結果:20
例如:RHOMBUSPERIMETER(5) 結果:20
ELLIPSEAREA:根據其兩個半軸計算橢圓形的面積。如果參數不是數字,操作將返回null。
例如:ELLIPSEAREA(7,5) 結果:109.96
ELLIPSEPERIMETER:根據其兩個半軸計算橢圓形的周長。如果參數不是數字,操作將返回null。
原文外掛簡介
The plugin implements the “Area and Perimeter” operations module to be used from the equations of the “Calculated Fields Form” plugin. The “Calculated Fields Form” plugin is a form builder with a lot of potential, and its “Calculated” control is one of its great strengths. It allows you to enter mathematical formulas, determine the distance between addresses, plot graphs, process dates, manage files, and many other operations.
The “CFF Area and Perimeter Operations” plugin enhances, even more, the possibilities of the “Calculated Fields Form” plugin, including operations to calculate the area and perimeter of figures like squares, triangles, rhombus, circles, ellipse, and even more important, regular and irregular polygons. The Area and Perimeter operations included by the plugin are listed below:
NVERTICESAREA: Calculates the area of a 2D figure given its vertices. The vertices are pairs of x,y coordinates. The operation returns null if the parameters are invalid or insufficient.
Ex: NVERTICESAREA([4,10],[9,7],[11,2],[2,2]) Result: 45.5
NVERTICESPERIMETER: Calculates the perimeter of a 2D figure given its vertices. The vertices are pairs of x,y coordinates. The operation returns null if the parameters are invalid or insufficient.
Ex: NVERTICESPERIMETER([4,10],[9,7],[11,2],[2,2]) Result: 28.46
NSIDESAREA: Calculates the area of a 2D figure given its sides. The sides are numbers only. The operation returns null if the parameters are invalid or insufficient, or it is not a polygon. For irregular polygons the operations returns the maximum area.
Ex: NSIDESAREA(9,8,9,20) Result: 93.91
NSIDESPERIMETER: Calculates the perimeter of a 2D figure given its sides. The sides are numbers only. The operation returns null if the parameters are invalid or insufficient, or it is not a polygon.
Ex: NSIDESPERIMETER(9,8,9,20) Result: 46
SQUAREAREA: Calculates the area of a square. Accepts the side of the square as a parameter. The operation returns null if the parameter is not a number.
Ex: SQUAREAREA(9) Result: 81
SQUAREPERIMETER: Calculates the perimeter of a square. Accepts the side of the square as a parameter. The operation returns null if the parameter is not a number.
Ex: SQUAREPERIMETER(9) Result: 36
TRIANGLEAREA: Calculates the area of the triangle given its base and height. The operation returns null if the parameters are not numbers.
Ex: TRIANGLEAREA(4,5) Result: 10
TRIANGLEPERIMETER: Calculates the perimeter of the triangle given two or three sides. If you pass only two sides as parameters, the plugin assumes it is a right triangle and calculates its hypotenuse. The operation returns null if the parameters are not numbers.
Ex: TRIANGLEAREA(3,4) Result: 12
Ex: TRIANGLEAREA(3,4,5) Result: 12
RHOMBUSAREA: Calculates the area of a rombo given its diagonals. The operation returns null if the parameters are not numbers.
Ex: RHOMBUSAREA(3,4) Result: 6
RHOMBUSPERIMETER: Calculates the perimeter of a rombo area given its side or diagonals. If you pass two parameters to the RHOMBUSPERIMETER operation, it assumes they are the rombo diagonals. The operation returns null if the parameters are not numbers.
Ex: RHOMBUSPERIMETER(6,8) Result: 20
Ex: RHOMBUSPERIMETER(5) Result: 20
ELLIPSEAREA: Calculates the area of an ellipse given two semi-axis. The operation returns null if the parameters are not numbers.
Ex: ELLIPSEAREA(7,5) Result: 109.96
ELLIPSEPERIMETER: Calculates the perimeter of an ellipse given two semi-axis. The operation returns null if the parameters are not numbers.
Ex: ELLIPSEPERIMETER(2,3) Result: 16.02
CIRCLEAREA: Calculates the area of a circle given its radius. The operation returns null if the parameter is not a number.
Ex: CIRCLEAREA(3) Result: 28.27
CIRCLEPERIMETER: Calculates the perimeter of a circle given its radius. The operation returns null if the parameter is not a number.
Ex: CIRCLEPERIMETER(3) Result: 18.85
Use
The “CFF Area and Perimeter Operations” plugin includes the new “Area and Perimeter” entry (see screenshots) in the operations list of the calculated fields (Insert a calculated field in the form and scroll down the operations list in your configuration). Once the “Area and Perimeter” option is selected, the plugin enables the operations set and documentation. By clicking on the operation buttons, they are added to the equation’s editor.
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「CFF Area and Perimeter Operations」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
1.0.0 | 1.0.1 | 1.0.2 | trunk |
延伸相關外掛(你可能也想知道)
暫無相關外掛推薦。