calc_relative_radius: Calculate relative radius

View source: R/calc_relative_radius.R

calc_relative_radiusR Documentation

Calculate relative radius

Description

Convert zenith angles (degrees) to normalized radial distance using the lens projection model.

Usage

calc_relative_radius(angle, lens_coef)

Arguments

angle

numeric vector. Zenith angles in degrees.

lens_coef

numeric vector. Polynomial coefficients of the lens projection function. See lens().

Details

This helper maps zenith angle(s) to a relative radius in [0, 1] given the lens projection coefficients.

Value

Numeric vector of the same length as angle, constrained to [0, 1].

Examples

calc_relative_radius(45, lens())

rcaiman documentation built on Sept. 9, 2025, 5:42 p.m.