V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
pinterest

DeviceOrientation 的 event.gamma 的范围是正负 90 度,那怎么区分绝对值大于 90 度的 y 轴侧翻?

  •  
  •   pinterest · Sep 26, 2016 · 2017 views
    This topic created in 3504 days ago, the information mentioned may be changed or developed.

    上图这两种情况的 event.gamma 获得的角度是一致的



    随着 y 轴侧翻角度的增加, event.gamma 值如黑色曲线变化,我想拟合红色曲线,所以必须区分如题的状态
    请教一下怎么区分图一的两种状态?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2601 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 12:45 · PVG 20:45 · LAX 05:45 · JFK 08:45
    ♥ Do have faith in what you're doing.