Class Icosahedron

  • All Implemented Interfaces:
    Polyhedron

    public class Icosahedron
    extends java.lang.Object
    implements Polyhedron
    • Constructor Summary

      Constructors 
      Constructor Description
      Icosahedron()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getCirumscribedRadius()
      Returns the radius of a circumscribed sphere, that goes through all vertices
      double getInscribedRadius()
      Returns the radius of an inscribed sphere, that is tangent to each of the icosahedron's faces
      java.util.List<int[]> getLineLoops()  
      double getMidRadius()
      Returns the radius of a sphere, that is tangent to each of the icosahedron's edges
      javax.vecmath.Point3d[] getVertices()  
      int getViewCount()  
      javax.vecmath.Matrix3d getViewMatrix​(int index)  
      java.lang.String getViewName​(int index)  
      void setCirumscribedRadius​(double cirumscribedRadius)
      Set the radius of a circumscribed sphere, that goes through all vertices
      void setInscribedRadius​(double radius)
      Sets the radius of an inscribed sphere, that is tangent to each of the icosahedron's faces
      void setMidRadius​(double radius)
      Sets the radius of radius of a sphere, that is tangent to each of the icosahedron's edges
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Icosahedron

        public Icosahedron()
    • Method Detail

      • getCirumscribedRadius

        public double getCirumscribedRadius()
        Returns the radius of a circumscribed sphere, that goes through all vertices
        Specified by:
        getCirumscribedRadius in interface Polyhedron
        Returns:
        the cirumscribedRadius
      • 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
      • getMidRadius

        public double getMidRadius()
        Returns the radius of a sphere, that is tangent to each of the icosahedron's edges
        Returns:
        the midRadius
      • setMidRadius

        public void setMidRadius​(double radius)
        Sets the radius of radius of a sphere, that is tangent to each of the icosahedron's edges
        Parameters:
        midRadius - the midRadius to set
      • getVertices

        public javax.vecmath.Point3d[] getVertices()
        Specified by:
        getVertices in interface Polyhedron
      • getLineLoops

        public java.util.List<int[]> getLineLoops()
        Specified by:
        getLineLoops in interface Polyhedron
      • getViewName

        public java.lang.String getViewName​(int index)
        Specified by:
        getViewName in interface Polyhedron
      • getViewMatrix

        public javax.vecmath.Matrix3d getViewMatrix​(int index)
        Specified by:
        getViewMatrix in interface Polyhedron