org.geotools.geometry.iso.util.algorithmND
Class AlgoRectangleND

java.lang.Object
  extended by org.geotools.geometry.iso.util.algorithmND.AlgoRectangleND

public class AlgoRectangleND
extends java.lang.Object

Author:
roehrig

Constructor Summary
AlgoRectangleND()
           
 
Method Summary
static boolean contains(double[] minCoord, double[] maxCoord, double[] coord)
          Verifies whether a n-D point lays within the envelope, or at the border or corner of the envelope.
static boolean intersects(double[] minCoord0, double[] maxCoord0, double[] minCoord1, double[] maxCoord1)
          Verifies whether another envelope intersects with this envelope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlgoRectangleND

public AlgoRectangleND()
Method Detail

contains

public static boolean contains(double[] minCoord,
                               double[] maxCoord,
                               double[] coord)
Verifies whether a n-D point lays within the envelope, or at the border or corner of the envelope.

Parameters:
minCoord - Lower Corner of the envelope
maxCoord - Upper Corner of the envelope
coord - Coordinate which has to be tested whether it´s within the envelope or not
Returns:
TRUE, if the Coordinate lays within the envelope

intersects

public static boolean intersects(double[] minCoord0,
                                 double[] maxCoord0,
                                 double[] minCoord1,
                                 double[] maxCoord1)
Verifies whether another envelope intersects with this envelope

Parameters:
minCoord0 -
maxCoord0 -
minCoord1 -
maxCoord1 -
Returns:
TRUE, if envelopes intersect; FALSE, if they dont intersect


Copyright © 1996-2010 Geotools. All Rights Reserved.