com.aspose.threed

Interfaces

Classes

Enums

Exceptions

com.aspose.threed

Class Box

    • Constructor Detail

      • Box

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

        public Box(double length,
                   double width,
                   double height)
        Initializes a new instance of the Box class.
        Parameters:
        length - Length of the box.
        width - Width of the box.
        height - Height of the box.
      • Box

        public Box(java.lang.String name,
                   double length,
                   double width,
                   double height,
                   int lengthSegments,
                   int widthSegments,
                   int heightSegments)
        Initializes a new instance of the Box class.
        Parameters:
        name - Name of the box.
        length - Length of the box.
        width - Width of the box.
        height - Height of the box.
        lengthSegments - Length segments.
        widthSegments - Width segments.
        heightSegments - Height segments.
    • Method Detail

      • getLengthSegments

        public int getLengthSegments()
        Gets the length segments.
      • setLengthSegments

        public void setLengthSegments(int value)
        Sets the length segments.
        Parameters:
        value - New value
      • getWidthSegments

        public int getWidthSegments()
        Gets the width segments
      • setWidthSegments

        public void setWidthSegments(int value)
        Sets the width segments
        Parameters:
        value - New value
      • getHeightSegments

        public int getHeightSegments()
        gets or sets the height segments.
      • setHeightSegments

        public void setHeightSegments(int value)
        gets or sets the height segments.
        Parameters:
        value - New value
      • getLength

        public double getLength()
        Gets the length of the box
      • setLength

        public void setLength(double value)
        Sets the length of the box
        Parameters:
        value - New value
      • getWidth

        public double getWidth()
        Gets the width of the box
      • setWidth

        public void setWidth(double value)
        Sets the width of the box
        Parameters:
        value - New value
      • getHeight

        public double getHeight()
        Gets the height of the box
      • setHeight

        public void setHeight(double value)
        Sets the height of the box
        Parameters:
        value - New value
      • equals

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