synergynetframework.jme.sysutils
Class SpatialUtility

java.lang.Object
  extended by synergynetframework.jme.sysutils.SpatialUtility

public class SpatialUtility
extends java.lang.Object

The Class SpatialUtility.


Constructor Summary
SpatialUtility()
           
 
Method Summary
static java.util.ArrayList<com.jme.math.Vector3f[]> findEdges(com.jme.scene.Spatial s, boolean removeContainer)
          Find edges.
static java.util.ArrayList<com.jme.math.Vector3f> generateRelevantCoords(com.jme.scene.Spatial s, java.util.ArrayList<java.lang.Integer> coordsIndex)
          Generate relevant coords.
static java.util.ArrayList<java.lang.Integer> getIndexOfRelevantCoords(com.jme.scene.Spatial s)
          Gets the index of relevant coords.
static float getMaxDimension(com.jme.scene.Spatial targetSpatial)
          Gets the max dimension.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpatialUtility

public SpatialUtility()
Method Detail

findEdges

public static java.util.ArrayList<com.jme.math.Vector3f[]> findEdges(com.jme.scene.Spatial s,
                                                                     boolean removeContainer)
Find edges.

Parameters:
s - the s
removeContainer - the remove container
Returns:
the array list

generateRelevantCoords

public static java.util.ArrayList<com.jme.math.Vector3f> generateRelevantCoords(com.jme.scene.Spatial s,
                                                                                java.util.ArrayList<java.lang.Integer> coordsIndex)
Generate relevant coords.

Parameters:
s - the s
coordsIndex - the coords index
Returns:
the array list

getIndexOfRelevantCoords

public static java.util.ArrayList<java.lang.Integer> getIndexOfRelevantCoords(com.jme.scene.Spatial s)
Gets the index of relevant coords.

Parameters:
s - the s
Returns:
the index of relevant coords

getMaxDimension

public static float getMaxDimension(com.jme.scene.Spatial targetSpatial)
Gets the max dimension.

Parameters:
targetSpatial - the target spatial
Returns:
the max dimension