Learn R Programming

cda (version 1.3.3.1)

helix: helix

Description

helix curve

Usage

helix(R0 = 500, pitch = 600, N = 5, delta = pi/8,
    delta0 = pi/2, n.smooth = 100 * N, right = TRUE)

Arguments

R0
radius in nm
pitch
pitch in nm
N
number of particles
delta
twist angle between two particles
delta0
angle shift at origin
n.smooth
number of interpolation points (for plotting purposes)
right
logical, handedness

Value

  • list with r, sizes, invalpha, angles, R0 and smooth interp. points

Details

add particles on an helix

See Also

Other user_level cluster: cluster_chain, cluster_dimer, cluster_helix, equal_angles, equal_sizes

Examples

Run this code
cl <- helix(500, 1000, 36, delta=pi/6, n.smooth=1e3) ; str(cl)
require(rgl)
open3d()
spheres3d(cl$smooth, radius=1,col=2)
## ellipsoids are oriented following the helix
sizes <- equal_sizes(40, 20, 20,NROW(cl$positions))
rgl.ellipsoids(cl$positions, sizes, cl$angles, col="gold")

Run the code above in your browser using DataLab