MCPcopy Create free account
hub / github.com/TheRealMJP/BakingLab / VerticalFOV

Function VerticalFOV

BakingLab/AppSettings.h:489–493  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

UpdateMethod · 0.85

Calls 1

atan2Function · 0.85

Tested by

no test coverage detected