testRayAab

Test whether the given ray with the origin <code>(originX, originY, originZ)</code> and direction <code>(dirX, dirY, dirZ)</code> intersects the axis-aligned box given as its minimum corner <code>(minX, minY, minZ)</code> and maximum corner <code>(maxX, maxY, maxZ)</code>. <p> This method returns <code>true</code> for a ray whose origin lies inside the axis-aligned box. <p> If many boxes need to be tested against the same ray, then the {@link RayAabIntersection} class is likely more efficient. <p> Reference: <a href="https://dl.acm.org/citation.cfm?id=1198748">An Efficient and Robust Ray–Box Intersection</a>

@see #testRayAab(Vector3d, Vector3d, Vector3d, Vector3d) @see RayAabIntersection

@param originX the x coordinate of the ray's origin @param originY the y coordinate of the ray's origin @param originZ the z coordinate of the ray's origin @param dirX the x coordinate of the ray's direction @param dirY the y coordinate of the ray's direction @param dirZ the z coordinate of the ray's direction @param minX the x coordinate of the minimum corner of the axis-aligned box @param minY the y coordinate of the minimum corner of the axis-aligned box @param minZ the z coordinate of the minimum corner of the axis-aligned box @param maxX the x coordinate of the maximum corner of the axis-aligned box @param maxY the y coordinate of the maximum corner of the axis-aligned box @param maxZ the y coordinate of the maximum corner of the axis-aligned box @return <code>true</code> if the given ray intersects the axis-aligned box; <code>false</code> otherwise

  1. bool testRayAab(double originX, double originY, double originZ, double dirX, double dirY, double dirZ, double minX, double minY, double minZ, double maxX, double maxY, double maxZ)
    public static
    bool
    testRayAab
    (
    double originX
    ,
    double originY
    ,
    double originZ
    ,
    double dirX
    ,
    double dirY
    ,
    double dirZ
    ,
    double minX
    ,
    double minY
    ,
    double minZ
    ,
    double maxX
    ,
    double maxY
    ,
    double maxZ
    )
  2. bool testRayAab(Vector3d origin, Vector3d dir, Vector3d min, Vector3d max)

Meta