Constructor and Description |
---|
Node(DblBoundingBox bounds) |
Node(Point2D location,
Value value,
DblBoundingBox bounds) |
Modifier and Type | Method and Description |
---|---|
Point2D |
getCenterOfMass() |
int |
getCharge() |
Point2D |
getLocation() |
Value |
getValue() |
double |
getWidth() |
double |
getX() |
double |
getY() |
boolean |
isLeaf() |
void |
setCenterOfMass(double x,
double y) |
void |
setCenterOfMass(Point2D location) |
void |
setCharge(int charge) |
void |
setLocation(double x,
double y) |
void |
setLocation(Point2D location) |
void |
setValue(Value value) |
void |
visit(QuadTree.Visitor<Value> visitor) |
public Node(DblBoundingBox bounds)
public Node(Point2D location, Value value, DblBoundingBox bounds)
public Point2D getLocation()
public void setLocation(Point2D location)
public void setLocation(double x, double y)
public Point2D getCenterOfMass()
public void setCenterOfMass(Point2D location)
public void setCenterOfMass(double x, double y)
public void setCharge(int charge)
public int getCharge()
public Value getValue()
public void setValue(Value value)
public double getWidth()
public boolean isLeaf()
public double getX()
public double getY()
public void visit(QuadTree.Visitor<Value> visitor)
Copyright © 2021. All rights reserved.