R/mcnp_cone_angle.R

Defines functions mcnp_cone_angle

Documented in mcnp_cone_angle

#' MCNP Cone Opening Parameter
#' @family mcnp tools
#' @description MCNP cone surface requires a term, t^2, which is the tangent of
#'   the cone angle, in radians, squared. This function takes an input in
#'   degrees and provides the parameter needed by MCNP.
#' @param d The cone angle in degrees.
#' @return tangent of cone angle squared
#' @examples
#' mcnp_cone_angle(45)
#' @export
mcnp_cone_angle <- function(d) tan(d * pi / 180)^2
markhogue/radsafer documentation built on July 29, 2023, 7:51 a.m.