public class ConeSector extends Model
By a partial cone we mean a cone over a circular sector of the cone's base and also cutting off the top part of the cone (the part between the apex and a circle of latitude) leaving a frustum of the (partial) cone.
Cone
,
ConeFrustum
hidden, lineSegmentList
Constructor and Description |
---|
ConeSector()
Create half of a right circular cone with its base in the xz-plane,
a base radius of 1, height 1, and apex on the positive y-axis.
|
ConeSector(double r,
double h1,
double h2,
double t,
double theta1,
double theta2,
int n,
int k)
Create a part of the cone with its base in the plane
y = h1 ,
a base radius of r , and apex on the y-axis at h = h2 . |
ConeSector(double r,
double h,
double t,
double theta1,
double theta2,
int n,
int k)
Create a part of the cone with its base in the xz-plane,
a base radius of
r , height h , and apex
on the y-axis. |
ConeSector(double r,
double h,
double theta1,
double theta2,
int n,
int k)
Create a part of the cone with its base in the xz-plane,
a base radius of
r , height h , and apex
on the y-axis. |
public ConeSector()
public ConeSector(double r, double h1, double h2, double t, double theta1, double theta2, int n, int k)
y = h1
,
a base radius of r
, and apex on the y-axis at h = h2
.
If h1 < t < h2
, then the partial cone is a frustum with its
base in the plane y = h1
and the top of the frustum at
y = t
.
If theta1 > 0
or theta2 < 2pi
,then the partial cone
is a cone over the circular sector from angle theta1
to angle
theta2
. In other words, the (partial) circles of latitude
in the model extend from angle theta1
to angle theta2
.
The last two parameters determine the number of lines of longitude and the number of (partial) circles of latitude in the model.
Notice that if there are n
circles of latitude in the model
(including the bottom edge but not the top edge of the frustum), then
each line of longitude will have n+1
line segments. If there
are k
lines of longitude (not counting one edge of any removed
sector), then each (partial) circle of latitude will have k
line segments.
There must be at least four lines of longitude and at least two circles of latitude.
r
- radius of the base of the coneh1
- height (on the y-axis) of the base of the coneh2
- height (on the y-axis) of the apex of the conet
- height (on the y-axis) of the top of the frustum of the conetheta1
- beginning longitude angle of the sectortheta2
- ending longitude angle of the sectorn
- number of circles of latitude around the conek
- number lines of longitudepublic ConeSector(double r, double h, double t, double theta1, double theta2, int n, int k)
r
, height h
, and apex
on the y-axis.
If 0 < t < h
, then the partial cone is a frustum
with its base in the xz-plane and the top of the frustum at
y = t
.
If theta1 > 0
or theta2 < 2pi
,then the partial
cone is a cone over the circular sector from angle theta1
to angle theta2
. In other words, the (partial) circles of
latitude in the model extend from angle theta1
to angle
theta2
.
The last two parameters determine the number of lines of longitude (not counting one edge of any removed sector) and the number of (partial) circles of latitude (not counting the top edge of the frustum) in the model.
Notice that if there are n
circles of latitude in the model
(including the bottom edge but not the top edge of the frustum), then
each line of longitude will have n+1
line segments. If there
are k
lines of longitude (not counting one edge of any removed
sector), then each (partial) circle of latitude will have k
line segments.
There must be at least four lines of longitude and at least two circles of latitude.
r
- radius of the base in the xz-planeh
- height of the apex on the y-axist
- top of the frustum of the cometheta1
- beginning longitude angle of the sectortheta2
- ending longitude angle of the sectorn
- number of circles of latitude around the conek
- number lines of longitudepublic ConeSector(double r, double h, double theta1, double theta2, int n, int k)
r
, height h
, and apex
on the y-axis.
If theta1 > 0
or theta2 < 2pi
,then the partial
cone is a cone over the circular sector from angle theta1
to angle theta2
. In other words, the (partial) circles of
latitude in the model extend from angle theta1
to angle
theta2
.
The last two parameters determine the number of lines of longitude and the number of (partial) circles of latitude in the model.
Notice that if there are n
circles of latitude in the model
(including the bottom edge), then each line of longitude will have
n
line segments. If there are k
lines of longitude,
then each (partial) circle of latitude will have k-1
line
segments.
There must be at least four lines of longitude and at least one circle of latitude.
r
- radius of the base in the xz-planeh
- height of the apex on the y-axistheta1
- beginning longitude angle of the sectortheta2
- ending longitude angle of the sectorn
- number of circles of latitude around the conek
- number lines of longitude