Java Rectangle Intersect intersects(final float x, final float y, final float z, final int sx, final int sy, final int sz)

Here you can find the source of intersects(final float x, final float y, final float z, final int sx, final int sy, final int sz)

Description

intersects

License

Open Source License

Declaration

public static final boolean intersects(final float x, final float y, final float z, final int sx, final int sy,
            final int sz) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static final boolean intersects(final float x, final float y, final float z, final int sx, final int sy,
            final int sz) {
        if (x >= 0 && y >= 0 && z >= 0 && x < sx && y < sy && z < sz)
            return true;
        else//from  www. jav  a2 s . c om
            return false;
    }
}

Related

  1. intersection(Rectangle r1, Rectangle r2, Rectangle out)
  2. intersection(Rectangle rectangle, Rectangle rectangle1, Rectangle rectangle2)
  3. intersectRect(double x1, double y1, double w1, double h1, double x2, double y2, double w2, double h2)
  4. intersects(double oldx, double oldy, double oldwidth, double oldheight, double oldx2, double oldy2, double oldwidth2, double oldheight2)
  5. intersects(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4)
  6. intersects(final Rectangle elementRect, final Rectangle viewportRect)
  7. intersects(final Rectangle2D a, final Rectangle2D b)
  8. intersects(float cx, float cy, float radius, float left, float top, float right, float bottom)
  9. intersects(Point p1, Point p2, Rectangle rect)