|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jmex.terrain.util.AbstractBresenhamTracer
com.jmex.terrain.util.BresenhamYUpGridTracer
public class BresenhamYUpGridTracer
An implementation of AbstractBresenhamTracer that works on the XZ plane, with positive Y as up.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.jmex.terrain.util.AbstractBresenhamTracer |
|---|
AbstractBresenhamTracer.Direction |
| Field Summary | |
|---|---|
protected static float |
TOLERANCE
|
| Fields inherited from class com.jmex.terrain.util.AbstractBresenhamTracer |
|---|
_gridLocation, _gridOrigin, _gridSpacing, _rayLocation, _walkRay, rayLength, stepDirection |
| Constructor Summary | |
|---|---|
BresenhamYUpGridTracer()
|
|
| Method Summary | |
|---|---|
boolean |
isRayPerpendicularToGrid()
|
void |
next()
Move us along our walkRay to the next grid location. |
void |
startWalk(Ray walkRay)
Set up our position on the grid and initialize the tracer using the provided ray. |
| Methods inherited from class com.jmex.terrain.util.AbstractBresenhamTracer |
|---|
getGridLocation, getGridOrigin, getGridSpacing, getLastStepDirection, getRayTraveled, setGridOrigin, setGridSpacing |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static float TOLERANCE
| Constructor Detail |
|---|
public BresenhamYUpGridTracer()
| Method Detail |
|---|
public void startWalk(Ray walkRay)
AbstractBresenhamTracer
startWalk in class AbstractBresenhamTracerwalkRay - the world ray along which we we walk the grid.public void next()
AbstractBresenhamTracer
next in class AbstractBresenhamTracerpublic boolean isRayPerpendicularToGrid()
isRayPerpendicularToGrid in class AbstractBresenhamTracer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||