Class BresenhamYUpGridTracer
java.lang.Object
com.jme3.terrain.geomipmap.picking.BresenhamYUpGridTracer
Works on the XZ plane, with positive Y as up.
- Author:
- Joshua Slack, Brent Owens
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.jme3.math.Vector2fprotected com.jme3.math.Vector3fprotected com.jme3.math.Vector3fprotected floatprotected com.jme3.math.Vector3fprotected BresenhamYUpGridTracer.Directionprotected static floatprotected com.jme3.math.Ray -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.jme3.math.Vector2fcom.jme3.math.Vector3fcom.jme3.math.Vector3fbooleanvoidnext()voidsetGridLocation(com.jme3.math.Vector2f gridLocation) voidsetGridOrigin(com.jme3.math.Vector3f gridOrigin) voidsetGridSpacing(com.jme3.math.Vector3f gridSpacing) voidstartWalk(com.jme3.math.Ray walkRay)
-
Field Details
-
gridOrigin
protected com.jme3.math.Vector3f gridOrigin -
gridSpacing
protected com.jme3.math.Vector3f gridSpacing -
gridLocation
protected com.jme3.math.Vector2f gridLocation -
rayLocation
protected com.jme3.math.Vector3f rayLocation -
walkRay
protected com.jme3.math.Ray walkRay -
stepDirection
-
rayLength
protected float rayLength -
TOLERANCE
protected static float TOLERANCE
-
-
Constructor Details
-
BresenhamYUpGridTracer
public BresenhamYUpGridTracer()
-
-
Method Details
-
startWalk
public void startWalk(com.jme3.math.Ray walkRay) -
next
public void next() -
getLastStepDirection
-
isRayPerpendicularToGrid
public boolean isRayPerpendicularToGrid() -
getGridLocation
public com.jme3.math.Vector2f getGridLocation() -
getGridOrigin
public com.jme3.math.Vector3f getGridOrigin() -
getGridSpacing
public com.jme3.math.Vector3f getGridSpacing() -
setGridLocation
public void setGridLocation(com.jme3.math.Vector2f gridLocation) -
setGridOrigin
public void setGridOrigin(com.jme3.math.Vector3f gridOrigin) -
setGridSpacing
public void setGridSpacing(com.jme3.math.Vector3f gridSpacing)
-