java.lang.Object
org.woehlke.computer.kurzweil.tabs.dla.model.Point
All Implemented Interfaces:
DiffusionLimitedAggregation

public class Point
extends java.lang.Object
implements DiffusionLimitedAggregation
Diffusion Limited Aggregation. (C) 2006 - 2013 Thomas Woehlke. https://thomas-woehlke.blogspot.com/2016/01/diffusion-limited-aggregation.html
Author:
Thomas Woehlke Date: 04.02.2006 Time: 23:47:05
  • Field Summary

    Fields inherited from interface org.woehlke.computer.kurzweil.tabs.dla.DiffusionLimitedAggregation

    TAB_TYPE
  • Constructor Summary

    Constructors
    Constructor Description
    Point​(int x, int y)  
    Point​(Point p)  
  • Method Summary

    Modifier and Type Method Description
    void add​(Point p)  
    Point[] getNeighbourhood​(Point max)  
    int getX()  
    int getY()  
    void killNagative()  
    void normalize​(Point p)  
    void setX​(int x)  
    void setY​(int y)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Point

      public Point​(Point p)
    • Point

      public Point​(int x, int y)
  • Method Details

    • getX

      public int getX()
    • setX

      public void setX​(int x)
    • getY

      public int getY()
    • setY

      public void setY​(int y)
    • killNagative

      public void killNagative()
    • add

      public void add​(Point p)
    • normalize

      public void normalize​(Point p)
    • getNeighbourhood

      public Point[] getNeighbourhood​(Point max)