Class LatticePoint
java.lang.Object
org.woehlke.computer.kurzweil.commons.model.LatticePoint
public class LatticePoint
extends java.lang.Object
A Point is used to define the Position of Cell or as a Vector for defining Dimensions.
Simulated Evolution. Artificial Life Simulation of Bacteria Motion depending on DNA.
© 2006 - 2008 Thomas Woehlke. http://thomas-woehlke.de/p/simulated-evolution/
- Author:
- Thomas Woehlke Date: 04.02.2006 Time: 23:47:05
-
Constructor Summary
Constructors Constructor Description LatticePoint(LatticePoint other) -
Method Summary
Modifier and Type Method Description voidabsoluteValue()LatticePointcopy()intgetHeight()intgetWidth()voidkillNegative()voidmoveBy(LatticePoint p)voidmoveDown()voidmoveLeft()voidmoveRight()voidmoveUp()voidnormalize(LatticePoint p)voidplus(LatticePoint p)static LatticePointstart(LatticePoint worldDimensions)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
LatticePoint
-
-
Method Details
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
absoluteValue
public void absoluteValue() -
killNegative
public void killNegative() -
plus
-
moveBy
-
normalize
-
moveUp
public void moveUp() -
moveRight
public void moveRight() -
moveDown
public void moveDown() -
moveLeft
public void moveLeft() -
copy
-
start
-