|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmoagg.util.MatrixTool
public class MatrixTool
| Constructor Summary | |
|---|---|
MatrixTool()
|
|
| Method Summary | |
|---|---|
static double |
getAverageTileValue(Matrix matrix,
MoaggGameObject object,
double oobValue)
For a given matrix and game object, this method calculates the average value considering that every matrix row/column represents a tile row/column of a map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MatrixTool()
| Method Detail |
|---|
public static double getAverageTileValue(Matrix matrix,
MoaggGameObject object,
double oobValue)
matrix - A matrix containing gravity/friction/whatoever information about a map.object - The game object for which to calculate the average value.oobValue - A default value to use if the game object lies (partially) out-of-bounds.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||