public class Pyramid extends Model
PyramidFrustum
hidden, lineSegmentList
Constructor and Description |
---|
Pyramid()
Create a right square pyramid with its base in the xz-plane,
a base side length of 2, height 1, and apex on the positive y-axis.
|
Pyramid(double s,
double h,
int n,
int k)
Create a right square pyramid with its base in the xz-plane,
a base length of
s , height h , and apex on the
positive y-axis. |
public Pyramid()
public Pyramid(double s, double h, int n, int k)
s
, height h
, and apex on the
positive y-axis.s
- side length of the base in the xz-planeh
- height of the apex on the y-axisn
- number of lines of latitude around the body of the pyramidk
- number of triangles in the triangle fan at the top of each side