public class PyramidFrustum extends Model
Pyramid
hidden, lineSegmentList
Constructor and Description |
---|
PyramidFrustum()
Create a frustum of a right square pyramid with its base in the
xz-plane, a base side length of 2, top side length of 1, and height 1/2.
|
PyramidFrustum(double s1,
double s2,
double h,
int n,
int k)
Create a frustum of a right square pyramid with its base in the
xz-plane, a base side length of
s1 , top side length of
s2 , and height h . |
public PyramidFrustum()
public PyramidFrustum(double s1, double s2, double h, int n, int k)
s1
, top side length of
s2
, and height h
.
Notice that this model works with either s1 > s2
or
s1 < s2
. In other words, the frustum can have its "apex"
either above or below the xz-plane.
s1
- side length of the base of the frustums2
- side length of the top of the frustumh
- height of the frustumn
- number of lines of latitudek
- number of lines of longitude