开发者

Android: How can I get the facing direction of the phone and the angle of view

开发者 https://www.devze.com 2023-03-19 18:55 出处:网络
I want t开发者_开发知识库o calculate the overlapped area between two phones, so I need to know the facing direction of the phone and also the angle of view of the camera. Does anybody know how to get

I want t开发者_开发知识库o calculate the overlapped area between two phones, so I need to know the facing direction of the phone and also the angle of view of the camera. Does anybody know how to get these information? Thanks!

Following is an example:

\ \  / /
 \ \/ /
  \/\/

camera1 camera2


You could try to use the compass to acquire that information but not all phones have it... it probably won't be that precise either.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号