| API Documentation | All Packages | All Classes | Index | Frames | ![]() |
| Class MortonOrder | Methods | |
| Package | org.openzoom.flash.utils |
| Class | public final class MortonOrder |
See also
| Method | Defined by | ||
|---|---|---|---|
|
getPosition(value:uint):Point
[static]
Returns the position (column, row) for a given Morton number.
| MortonOrder | ||
|
getValue(column:int, row:int):uint
[static]
Returns Morton number for the given position (column, row).
| MortonOrder | ||
| getPosition | () | method |
public static function getPosition(value:uint):PointReturns the position (column, row) for a given Morton number.
Parametersvalue:uint — Morton number (Z-order)
|
Point — Position of the Morton number in space (column, row)
|
| getValue | () | method |
public static function getValue(column:int, row:int):uintReturns Morton number for the given position (column, row).
Parameterscolumn:int — Column of the position
|
|
row:int — Row of the position
|
uint — Morton number for the given coordinates.
|