public static boolean contains ( SpatialComparable box , double [ ] point ) { final int dim = box . getDimensionality ( ) ; if ( dim != point . length ) { throw new IllegalArgumentException ( "This HyperBoundingBox and the given point need same dimensionality" ) ; } for ( int i = 0 ; i < dim ; i ++ ) { if ( box . getMin ( i ) > point [ i ] || box . getMax ( i ) < point [ i ] ) { return false ; } } return true ; }
Returns true if this SpatialComparable contains the given point false otherwise .