This function generates a row of data points for a 3D torus with given radii.
Arguments
- radius
A numeric vector containing the radii of the torus, from largest
to smallest.
Value
A vector representing a row of data points for the 3D torus.
Examples
set.seed(20240412)
torus_3d_row(c(2, 1))
#> [1] 0.9095192 -0.6080611 -0.4234023