Skip to content

Commit 25eb2cc

Browse files
committed
支持计算魔法阵顶点坐标
1 parent 523d420 commit 25eb2cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/kotlin/cn/coostack/utils/Math3DUtil.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ object Math3DUtil {
1313

1414

1515
/**
16+
* DeepSeek解放大脑
1617
* @see getCycloidGraphic 获取此函数生成的图像的顶点
1718
* 参数要求必须和 getCycloidGraphic 生成的参数完全一致
1819
*/
@@ -30,6 +31,7 @@ object Math3DUtil {
3031
val w2Step = w2 * precision
3132

3233
val d = gcd(abs(w1), abs(w2))
34+
// 感谢MZ的数学更正
3335
val verticesCount = abs(w1 - w2) / d
3436
val vertices = mutableListOf<RelativeLocation>()
3537

0 commit comments

Comments
 (0)