滑轮切向加速度
private float[] mWheelDirectionAcceleration;
private final static int WHEEL_COUNT = 4;
public WheelData() {
mWheelSpeed = new float[WHEEL_COUNT];
mWheelDirectionAcceleration = new float[WHEEL_COUNT];
}
public void setWheelSpeed(float[] wheelSpeed) {
if (wheelSpeed.length != WHEEL_COUNT) {
return;
}
System.arraycopy(wheelSpeed, 0, mWheelSpeed, 0, WHEEL_COUNT);
}
public void setWheelDirectionAcceleration(float[] wheelDirectionAcceleration) {
if (wheelDirectionAcceleration.length != WHEEL_COUNT) {
return;
创作工场
免责声明:
以上内容除特别注明外均来源于网友提问,创作工场回答,未经许可,严谨转载。
点击这里>>使用🔥专业版,更聪明、更完整、更原创!