circle3d

0th

Percentile

Draw a horizontal circle

A utility function for drawing a horizontal circle in the (x,y) plane in a 3D graph

Usage
circle3d(center, radius, segments = 100, fill = FALSE, ...)
Arguments
center

A vector of length 3.

radius

A positive number.

segments

An integer specifying the number of line segments to use to draw the circle (default, 100).

fill

logical; if TRUE, the circle is filled (the default is FALSE).

...

rgl material properties for the circle.

See Also

Other vector diagrams: Proj, arc, arrows3d, corner, plot.regvec3d, pointOnLine, regvec3d, vectors3d, vectors

Aliases
  • circle3d
Examples
# NOT RUN {
ctr=c(0,0,0)
circle3d(ctr, 3, fill = TRUE)
circle3d(ctr - c(-1,-1,0), 3, col="blue")
circle3d(ctr + c(1,1,0),   3, col="red")
# }
Documentation reproduced from package matlib, version 0.9.2, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.