| 487 | } |
| 488 | |
| 489 | inline float VerticalFOV(float aspectRatio) |
| 490 | { |
| 491 | float verticalSize = FilmSize / aspectRatio; |
| 492 | return 2.0f * std::atan2(verticalSize, 2.0f * FocalLength); |
| 493 | } |
| 494 | |
| 495 | inline void SetFocalLengthFromVFOV(float FOV, float aspectRatio) |
| 496 | { |