Spell fixed

This commit is contained in:
NitloadProgramming
2022-08-19 22:34:09 +08:00
parent b38ebaae35
commit cecd5bbd7a
@@ -87,7 +87,7 @@ this.VelocityY = yParaArray ;
} }
使用秦九韶算法计算X轴位移 使用秦九韶算法计算X轴位移
public float XMotion(Exlipse) public float XMotion(Eclipse)
{ {
float xMotion = Eclipse; float xMotion = Eclipse;
for(int i=0; i<10; i++) for(int i=0; i<10; i++)
@@ -95,9 +95,22 @@ for(int i=0; i<10; i++)
xMotion *= VelovityX[i]; xMotion *= VelovityX[i];
xMotion += VelovityX[i+1]; xMotion += VelovityX[i+1];
} }
xMotion *= Eclipse;
return xMotion; return xMotion;
} }
使用秦九韶算法计算X轴位移
public float YMotion(Eclipse)
{
float yMotion = Eclipse;
for(int i=0; i<10; i++)
{
yMotion *= VelovityY[i];
yMotion += VelovityY[i+1];
}
yMotion *= Eclipse;
return yMotion;
}
} }