LoginSignup
1
1

More than 5 years have passed since last update.

比例式

Last updated at Posted at 2015-08-20
x:y = a:b

このような比例式が成り立つとき、外側の値(xとb)を掛けたものと内側の値(yとa)を掛けたものが等しくなる。

xb = ya

これがすぐに出てこない人が割といるように思うが、UIやゲームの開発では頻出である。

この式を x= あるいは y= のように変形して使うことが多いだろう。

x = \frac{ya}{b} \\
y = \frac{xb}{a}
1
1
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
1
1