Pyramid constructor
Contents
[
Hide
]init
Construct a new pyramid instance with default bottom area(10, 10) and default height(5)
def __init__(self):
...
init
Construct a new pyramid instance with specified bottom area
def __init__(self, xbottom, ybottom, height):
...
Parameter | Type | Description |
---|---|---|
xbottom | float | The x-direction length of the bottom |
ybottom | float | The y-direction length of the bottom |
height | float | The height of the pyramid |
init
Construct a new pyramid instance with specified bottom area and top area and height.
def __init__(self, xbottom, ybottom, xtop, ytop, height):
...
Parameter | Type | Description |
---|---|---|
xbottom | float | The x-direction length of the bottom area |
ybottom | float | The y-direction length of the bottom area |
xtop | float | The x-direction length of the top area |
ytop | float | The y-direction length of the top area |
height | float | The height of the pyramid |
init
Construct a new pyramid instance with specified bottom area and top area and height.
def __init__(self, name, xbottom, ybottom, xtop, ytop, height):
...
Parameter | Type | Description |
---|---|---|
name | str | The name of the pyramid |
xbottom | float | The x-direction length of the bottom area |
ybottom | float | The y-direction length of the bottom area |
xtop | float | The x-direction length of the top area |
ytop | float | The y-direction length of the top area |
height | float | The height of the pyramid |
See Also
- module
aspose.threed.entities
- class
Pyramid