public class TriangularPyramid extends Model
Tetrahedron
hidden, lineSegmentList
Constructor and Description |
---|
TriangularPyramid()
Create a regular tetrahedron having side length
sqrt(3)/sqrt(2) , with one face in the
xz-plane with its center at the origin, and the
4th vertex on the positive y-axis at height 1. |
TriangularPyramid(double s)
Create a regular tetrahedron having side length
s ,
with one face in the xz-plane with its center at the origin,
and with the 4th vertex on the positive y-axis at
height s*sqrt(2)/sqrt(3) . |
TriangularPyramid(double r,
double h)
Create a tetrahedron with one face being an equilateral triangle
inscribed in a circle of radius
r centered at the origin
of the xz-plane and with the 4th vertex on the y-axis at height
h . |
public TriangularPyramid()
sqrt(3)/sqrt(2)
, with one face in the
xz-plane with its center at the origin, and the
4th vertex on the positive y-axis at height 1.public TriangularPyramid(double s)
s
,
with one face in the xz-plane with its center at the origin,
and with the 4th vertex on the positive y-axis at
height s*sqrt(2)/sqrt(3)
.s
- the length of the regular tetrahedron's sidespublic TriangularPyramid(double r, double h)
r
centered at the origin
of the xz-plane and with the 4th vertex on the y-axis at height
h
.
If h = r * sqrt(2)
, then the tetrahedron is a regular tetrahedron.
with side length s = r * sqrt(3)
.
Another way to state this is, if an equilateral triangle is inscribed
in a circle of radius r
, then the edge length of the triangle
is r*sqrt(3)
and the height of the regular tetrahedron made
from the triangle is r*sqrt(2)
.
r
- radius of circle in xz-plane that the equilateral base is inscribed inh
- coordinate on the y-axis of the apex