LoginSignup
0
0

More than 5 years have passed since last update.

geometry > 角度範囲を回転した結果の範囲について > {AOV:0度 / AOV:360度}の判別

Last updated at Posted at 2017-05-11

定義

角度

  • [min_R, max_R) : min_R以上, max_R未満
    • 0<=min_R<360
    • 0<=max_R<=360
  • [rotation] : 回転角
    • 0<=rotation<360
  • [min_A, max_A) : min_A以上、max_A未満
    • 0<=min_A<360
    • 0<=max_A<=360

min_R, max_Rとrotationを入力し、min_Aとmax_Aを取得する。

AOV

Angle of View

角度範囲がどれほど開いているか、を定義する。
0から360度の範囲を持つ。

検討事項

AOV < 360の場合

AOV < 360の場合は、問題がない。
例として、

  • [min_R, max_R) = [0, 350)
  • [rotation] = 60
  • [min_A, max_A) = [60, 50)

min_Aとmax_AのAOVは350ということが分かる。

AOV = 0もしくはAOV = 360の場合

AOV = 0の場合

  • [min_R, max_R) = [0, 0)
  • [rotation] = 60
  • [min_A, max_A) = [60, 60)

AOV = 360の場合

  • [min_R, max_R) = [0, 360)
  • [rotation] = 60
  • [min_A, max_A) = [60, 60)

max_Aの定義域について360超過を許可しないと、AOV=0とAOV=360の判別ができなくなる。

対応策1

[min_R, max_R) = [0, 360)の時だけ、[rotation]の値に関わらず
[min_A, max_A) = [0, 360)にする、というのは一つの手である。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0