Class Plane

    • Constructor Detail

      • Plane

        public Plane()
    • Method Detail

      • containsPoint

        public boolean containsPoint​(float x,
                                     float y)
        Tests the bounds to see if they contain a specified point.
        Parameters:
        x - the x-coordinate of the point.
        y - the y-coordinate of the point.
        Returns:
        true if the point lies within the bounds; otherwise false.
      • setBounds

        public void setBounds​(int boundsX,
                              int boundsY,
                              int boundsWidth,
                              int boundsHeight)
        Sets the boundaries of the plane.
        Specified by:
        setBounds in interface Positionable
        Parameters:
        boundsX - x-coordinate of the plane
        boundsY - y-coordinate of the plane
        boundsWidth - width of the plane
        boundsHeight - height of the plane
      • setPosition

        public void setPosition​(int boundsX,
                                int boundsY)
        Sets the position of the plane.
        Specified by:
        setPosition in interface Positionable
        Parameters:
        boundsX - x-coordinate of the plane
        boundsY - y-coordinate of the plane
      • setVisibility

        @Deprecated
        public void setVisibility​(boolean visible)
        Deprecated.
        Deprecated method to be removed when no longer called publicly.
        Parameters:
        visible - boolean
      • time

        public static double time()
        Returns the current timestamp of the most precise timer available on the local system. This timestamp can only be used to measure an elapsed period by comparing it against another timestamp. It cannot be used as a very exact system time expression.
        Returns:
        the current timestamp in seconds.