Class Boundings
java.lang.Object
de.florianmichael.rclasses.math.integration.Boundings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisInBounds(double x, double y, double left, double up, double right, double down) static booleanisInBounds(float x, float y, float left, float up, float right, float down) static booleanisInBounds(int x, int y, int left, int up, int right, int down) static booleanisInBounds(long x, long y, long left, long up, long right, long down) static booleanisInBounds(short x, short y, short left, short up, short right, short down) static booleanisInBoundsAbsolute(double x, double y, double left, double up, double right, double down) static booleanisInBoundsAbsolute(float x, float y, float left, float up, float right, float down) static booleanisInBoundsAbsolute(int x, int y, int left, int up, int right, int down) static booleanisInBoundsAbsolute(long x, long y, long left, long up, long right, long down) static booleanisInBoundsAbsolute(short x, short y, short left, short up, short right, short down)
-
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.
-