Class Prism

    • Constructor Detail

      • Prism

        public Prism​(int n)
    • Method Detail

      • getHeight

        public double getHeight()
        Returns:
        the height
      • setHeight

        public void setHeight​(double height)
        Parameters:
        height - the height to set
      • setCirumscribedRadius

        public void setCirumscribedRadius​(double cirumscribedRadius)
        Set the radius of a circumscribed sphere, that goes through all vertices
        Parameters:
        cirumscribedRadius - the cirumscribedRadius to set
      • getInscribedRadius

        public double getInscribedRadius()
        Returns the radius of an inscribed sphere, that is tangent to each of the icosahedron's faces
        Returns:
        the inscribedRadius
      • setInscribedRadius

        public void setInscribedRadius​(double radius)
        Sets the radius of an inscribed sphere, that is tangent to each of the icosahedron's faces
        Parameters:
        inscribedRadius - the inscribedRadius to set
      • getVertices

        public javax.vecmath.Point3d[] getVertices()
        Returns the vertices of an n-fold polygon of given radius and center
        Specified by:
        getVertices in interface Polyhedron
        Returns:
      • getPolygonVertices

        public static javax.vecmath.Point3d[] getPolygonVertices​(int n,
                                                                 double radius,
                                                                 javax.vecmath.Point3d center)
        Returns the vertices of an n-fold polygon of given radius and center
        Returns: