public class RingSector extends Model
Ring
hidden, lineSegmentList
Constructor and Description |
---|
RingSector()
Create half a ring (annulus) in the xy-plane
with outer radius 1, inner radius 0.33, with 7
spokes coming out of the center, and with 5
concentric circles.
|
RingSector(double r1,
double r2,
double theta1,
double theta2,
int n,
int k)
Create a sector of a ring (annulus) in the xy-plane
with outer radius
r1 , inner radius r2 ,
with k spokes coming out of the center, and
with n concentric circles. |
public RingSector()
public RingSector(double r1, double r2, double theta1, double theta2, int n, int k)
r1
, inner radius r2
,
with k
spokes coming out of the center, and
with n
concentric circles.
Notice that if there are k
spokes, then each
(partial) circle around the center will have k-1
line segments. If there are n
concentric circles
around the center, then each spoke will have n-1
line segments.
There must be at least four spokes and at least two concentric circle.
r1
- outer radius of the ringr2
- inner radius of the ringtheta1
- beginning angle of the sectortheta2
- ending angle of the sectorn
- number of concentric circlesk
- number of spokes in the ring