Class Torus

    • Constructor Detail

      • Torus

        public Torus()
        Initializes a new instance of the Torus class.
      • Torus

        public Torus​(double radius,
                     double tube)
        Initializes a new instance of the Torus class.
        Parameters:
        radius - The radius of the torus.
        tube - The radius of the torus' tube.
      • Torus

        public Torus​(double radius,
                     double tube,
                     double arc)
        Initializes a new instance of the Torus class.
        Parameters:
        radius - The radius of the torus.
        tube - The radius of the torus' tube.
        arc - Arc.
      • Torus

        public Torus​(java.lang.String name,
                     double radius,
                     double tube,
                     int radialSegments,
                     int tubularSegments,
                     double arc)
        Initializes a new instance of the Torus class.
        Parameters:
        name - Name.
        radius - The radius of the torus.
        tube - The radius of the torus' tube.
        radialSegments - Radial segments.
        tubularSegments - Tubular segments.
        arc - Arc.
    • Method Detail

      • getRadius

        public double getRadius()
        Gets the radius of the torus.
      • setRadius

        public void setRadius​(double value)
        Sets the radius of the torus.
        Parameters:
        value - New value
      • getTube

        public double getTube()
        Gets the radius of the tube.
      • setTube

        public void setTube​(double value)
        Sets the radius of the tube.
        Parameters:
        value - New value
      • getRadialSegments

        public int getRadialSegments()
        Gets the radial segments.
      • setRadialSegments

        public void setRadialSegments​(int value)
        Sets the radial segments.
        Parameters:
        value - New value
      • getTubularSegments

        public int getTubularSegments()
        Gets the tubular segments.
      • setTubularSegments

        public void setTubularSegments​(int value)
        Sets the tubular segments.
        Parameters:
        value - New value
      • getArc

        public double getArc()
        Gets the arc.
      • setArc

        public void setArc​(double value)
        Sets the arc.
        Parameters:
        value - New value