java.lang.Object
de.florianmichael.rclasses.math.integration.Boundings

public class Boundings extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isInBounds(double x, double y, double left, double up, double right, double down)
     
    static boolean
    isInBounds(float x, float y, float left, float up, float right, float down)
     
    static boolean
    isInBounds(int x, int y, int left, int up, int right, int down)
     
    static boolean
    isInBounds(long x, long y, long left, long up, long right, long down)
     
    static boolean
    isInBounds(short x, short y, short left, short up, short right, short down)
     
    static boolean
    isInBoundsAbsolute(double x, double y, double left, double up, double right, double down)
     
    static boolean
    isInBoundsAbsolute(float x, float y, float left, float up, float right, float down)
     
    static boolean
    isInBoundsAbsolute(int x, int y, int left, int up, int right, int down)
     
    static boolean
    isInBoundsAbsolute(long x, long y, long left, long up, long right, long down)
     
    static boolean
    isInBoundsAbsolute(short x, short y, short left, short up, short right, short down)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Boundings

      public Boundings()
  • Method Details

    • isInBounds

      public static boolean isInBounds(short x, short y, short left, short up, short right, short down)
      Parameters:
      x - The x value.
      y - The y value.
      left - The left value.
      up - The up value.
      right - The right value.
      down - The down value.
      Returns:
      Whether the given point is in the bounds of the given rectangle. The bounds are relative.
    • isInBounds

      public static boolean isInBounds(int x, int y, int left, int up, int right, int down)
      Parameters:
      x - The x value.
      y - The y value.
      left - The left value.
      up - The up value.
      right - The right value.
      down - The down value.
      Returns:
      Whether the given point is in the bounds of the given rectangle. The bounds are relative.
    • isInBounds

      public static boolean isInBounds(long x, long y, long left, long up, long right, long down)
      Parameters:
      x - The x value.
      y - The y value.
      left - The left value.
      up - The up value.
      right - The right value.
      down - The down value.
      Returns:
      Whether the given point is in the bounds of the given rectangle. The bounds are relative.
    • isInBounds

      public static boolean isInBounds(float x, float y, float left, float up, float right, float down)
      Parameters:
      x - The x value.
      y - The y value.
      left - The left value.
      up - The up value.
      right - The right value.
      down - The down value.
      Returns:
      Whether the given point is in the bounds of the given rectangle. The bounds are relative.
    • isInBounds

      public static boolean isInBounds(double x, double y, double left, double up, double right, double down)
      Parameters:
      x - The x value.
      y - The y value.
      left - The left value.
      up - The up value.
      right - The right value.
      down - The down value.
      Returns:
      Whether the given point is in the bounds of the given rectangle. The bounds are relative.
    • isInBoundsAbsolute

      public static boolean isInBoundsAbsolute(short x, short y, short left, short up, short right, short down)
      Parameters:
      x - The x value.
      y - The y value.
      left - The left value.
      up - The up value.
      right - The right value.
      down - The down value.
      Returns:
      Whether the given point is in the bounds of the given rectangle. The bounds are absolute.
    • isInBoundsAbsolute

      public static boolean isInBoundsAbsolute(int x, int y, int left, int up, int right, int down)
      Parameters:
      x - The x value.
      y - The y value.
      left - The left value.
      up - The up value.
      right - The right value.
      down - The down value.
      Returns:
      Whether the given point is in the bounds of the given rectangle. The bounds are absolute.
    • isInBoundsAbsolute

      public static boolean isInBoundsAbsolute(long x, long y, long left, long up, long right, long down)
      Parameters:
      x - The x value.
      y - The y value.
      left - The left value.
      up - The up value.
      right - The right value.
      down - The down value.
      Returns:
      Whether the given point is in the bounds of the given rectangle. The bounds are absolute.
    • isInBoundsAbsolute

      public static boolean isInBoundsAbsolute(float x, float y, float left, float up, float right, float down)
      Parameters:
      x - The x value.
      y - The y value.
      left - The left value.
      up - The up value.
      right - The right value.
      down - The down value.
      Returns:
      Whether the given point is in the bounds of the given rectangle. The bounds are absolute.
    • isInBoundsAbsolute

      public static boolean isInBoundsAbsolute(double x, double y, double left, double up, double right, double down)
      Parameters:
      x - The x value.
      y - The y value.
      left - The left value.
      up - The up value.
      right - The right value.
      down - The down value.
      Returns:
      Whether the given point is in the bounds of the given rectangle. The bounds are absolute.