com.aspose.threed

Interfaces

Classes

Enums

Exceptions

com.aspose.threed

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

      • equals

        public boolean equals(java.lang.Object obj)
        Check if two toruses equal
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - The object to check equality.
        Returns:
        True if all properties are identically equal.
      • 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
      • hashCode

        public int hashCode()
        Gets the hash code of current primitive instance
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        The hash code of the Torus