7 - 2 * Math.abs(row)这属于什么类型的数学?

来源:百度知道 编辑:UC知道 时间:2024/06/28 13:03:32
这属于什么类型的数学?
j<=2*(4-Math.abs(i))-1中的“2*(4-Math.abs(i))-1”、if( 3 - Math.abs(line) < Math.abs(row) )和7 - 2 * Math.abs(row)都能判断出菱形,他们属于什么类型的数学?

Math.abs()取绝对值函数
7 - 2 * Math.abs(row)就是7减去 row绝对值的2倍

2*(4-Math.abs(i))-1
i的绝对值与4之差的2倍再减1

7 - 2 * Math.abs(row)

Math.abs(row) 求row的绝对值
2*Math.abs(row)乘2
然后再用7减 剩下的 数学几何问题

111