public class Disk extends Model
DiskSector
hidden, lineSegmentList
Constructor and Description |
---|
Disk()
Create a disk in the xy-plane with radius 1,
with 12 spokes coming out of the center, and
with 6 concentric circles around the disk.
|
Disk(double r)
Create a disk in the xy-plane with radius
r , with 12 spokes coming out of the
center, and with 6 concentric circles around
the disk. |
Disk(double r,
int n,
int k)
Create a disk in the xy-plane with radius
r , with k spokes coming out
of the center, and with n concentric
circles around the disk. |
public Disk()
public Disk(double r)
r
, with 12 spokes coming out of the
center, and with 6 concentric circles around
the disk.r
- radius of the diskpublic Disk(double r, int n, int k)
r
, with k
spokes coming out
of the center, and with n
concentric
circles around the disk.
Notice that if there are k
spokes, then each
circle around the center will have k
line segments.
If there are n
concentric circles around the
center, then each spoke will have n
line segments.
There must be at least three spokes and at least one concentric circle.
r
- radius of the diskn
- number of concentric circlesk
- number of spokes in the disk