从 Android 的手写笔倾斜和方向到 tiltX 和 tiltY 的转变

Transformation from Android's tilt and orientation of stylus to tiltX and tiltY

提问人:mgierw 提问时间:9/16/2023 更新时间:9/16/2023 访问量:16

问:

我在 Android 中调用 followind 方法:

var tilt = MotionEvent.getAxisValue(MotionEvent.AXIS_TILT);
var orientation = MotionEvent.getAxisValue(MotionEvent.AXIS_ORIENTATION);

现在我想将上述值转换为 W3 规范并在 W3 规范中定义:tiltXtiltY

有没有办法进行这样的转变?

Android 数学

评论


答: 暂无答案