public class Point2DCharge extends Point2D.Double
Point2D.Double, Point2D.Float
x, y
Constructor and Description |
---|
Point2DCharge(double x,
double y) |
Point2DCharge(Point2D pt,
double ch) |
Modifier and Type | Method and Description |
---|---|
void |
apply(VectorForce value) |
boolean |
equals(Object obj) |
double |
getCharge() |
int |
hashCode() |
void |
setCharge(double charge) |
void |
setLocation(double x,
double y) |
void |
setLocation(Point2D p) |
void |
setMoveObserver(MoveObserver moveObserver) |
String |
toString() |
getX, getY
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq
public Point2DCharge(double x, double y)
public Point2DCharge(Point2D pt, double ch)
public void apply(VectorForce value)
public final void setLocation(double x, double y)
setLocation
in class Point2D.Double
public final void setLocation(Point2D p)
setLocation
in class Point2D
public String toString()
toString
in class Point2D.Double
public final double getCharge()
public final void setCharge(double charge)
public final void setMoveObserver(MoveObserver moveObserver)
Copyright © 2017. All Rights Reserved.