Learn R Programming

cda (version 1.2.1)

helix: helix

Description

helix curve

Usage

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

Arguments

R0
radius in microns
pitch
pitch in microns
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: clust.equalangles, clust.equalsizes, helix.zt, makeDimerCluster, makeDimerDihedral, makeHelixCluster, makeHelixCluster.zt, makeRodChain, makeSpheresCluster

Examples

Run this code
cl <- helix(0.5, 1, 36, delta=pi/6, n.smooth=1e3) ; str(cl)
require(rgl)
open3d()
spheres3d(cl$smooth, radius=0.01,col=2)
spheres3d(cl$positions, radius=0.1, col="gold")
## ellipsoids are oriented following the helix
sizes <- clust.equalsizes(0.04,0.02,0.02,NROW(cl$positions))
rgl.ellipsoids(cl$positions, sizes, cl$angles, col="gold")

Run the code above in your browser using DataLab