Pyramid.Pyramid

Pyramid()

Construct a new pyramid instance with default bottom area(10, 10) and default height(5)

public Pyramid()

See Also


Pyramid(double, double, double)

Construct a new pyramid instance with specified bottom area

public Pyramid(double xbottom, double ybottom, double height)
ParameterTypeDescription
xbottomDoubleThe x-direction length of the bottom
ybottomDoubleThe y-direction length of the bottom
heightDoubleThe height of the pyramid

See Also


Pyramid(double, double, double, double, double)

Construct a new pyramid instance with specified bottom area and top area and height.

public Pyramid(double xbottom, double ybottom, double xtop, double ytop, double height)
ParameterTypeDescription
xbottomDoubleThe x-direction length of the bottom area
ybottomDoubleThe y-direction length of the bottom area
xtopDoubleThe x-direction length of the top area
ytopDoubleThe y-direction length of the top area
heightDoubleThe height of the pyramid

See Also


Pyramid(string, double, double, double, double, double)

Construct a new pyramid instance with specified bottom area and top area and height.

public Pyramid(string name, double xbottom, double ybottom, double xtop, double ytop, double height)
ParameterTypeDescription
nameStringThe name of the pyramid
xbottomDoubleThe x-direction length of the bottom area
ybottomDoubleThe y-direction length of the bottom area
xtopDoubleThe x-direction length of the top area
ytopDoubleThe y-direction length of the top area
heightDoubleThe height of the pyramid

See Also