calc_overlap_3D: calculate overlap in three dimensions (calc_overlap_3D)

View source: R/3D.R

calc_overlap_3DR Documentation

calculate overlap in three dimensions (calc_overlap_3D)

Description

Calculates the volume of intersection divided by the volume of the manifold. For the cube, r is the length of the side. For sphere, r is the radius. For the annulus, r and min_r are the two radii.

Usage

calc_overlap_3D(alpha, r = 1, rmin = 0.01, bound = "cube")

Arguments

alpha

radius of one sphere

r

radius of second sphere or outer radius of shell or length of cube side

rmin

inner radius of shell, only needed if bound=shell

bound

manifold type, options are "cube", "shell", and "sphere"

Value

volume of overlap


ashapesampler documentation built on May 29, 2024, 3:22 a.m.