Skip to content
  • Kenneth Moreland's avatar
    Fix scaling of x/y field of views · 0da55730
    Kenneth Moreland authored
    Prevously, the x field of view was computed by scaling the y field of
    view by the aspect ratio of the canvas. However, this is wrong because
    the field of view angles do not scale linearly with the aspect ratio.
    Fix this issue by using trig functions to convert the angle to distance,
    scale the distance, and then convert back to angle.
    0da55730