getFocalLength method

double getFocalLength()

Calculates the focal length from the current .fov and .filmGauge.

Implementation

double getFocalLength() {
		final vExtentSlope = math.tan(0.5 * this.fov ).toRad();
		return 0.5 * this.getFilmHeight() / vExtentSlope;
	}