com.aspose.threed

Interfaces

Classes

Enums

Exceptions

com.aspose.threed

Class Plane

    • Constructor Detail

      • Plane

        public Plane()
        Initializes a new instance of the Plane with default size 1x1.
      • Plane

        public Plane(double length,
                     double width)
        Initializes a new instance of the Plane.
        Parameters:
        length - Length of the plane.
        width - Width of the plane.
      • Plane

        public Plane(java.lang.String name,
                     double length,
                     double width,
                     int lengthSegments,
                     int widthSegments)
        Initializes a new instance of the Plane.
        Parameters:
        name - Name.
        length - Length of the plane.
        width - Width of the plane.
        lengthSegments - Length segments.
        widthSegments - Width segments.
    • Method Detail

      • getUp

        public Vector3 getUp()
        Gets the up vector of the plane, default value is (0, 1, 0), this affects the generation of the plane
      • setUp

        public void setUp(Vector3 value)
        Sets the up vector of the plane, default value is (0, 1, 0), this affects the generation of the plane
        Parameters:
        value - New value
      • equals

        public boolean equals(java.lang.Object obj)
        Check if two planes equal
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - The object to check equality.
        Returns:
        True if all properties are identically equal.
      • getLength

        public double getLength()
        Gets the length of the plane.
      • setLength

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

        public double getWidth()
        Gets the width of the plane.
      • setWidth

        public void setWidth(double value)
        Sets the width of the plane.
        Parameters:
        value - New value
      • 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
      • 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 Plane