public class Point2DCharge extends Point2D.Double
Point2D.Double, Point2D.Floatx, 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, getYclone, distance, distance, distance, distanceSq, distanceSq, distanceSqpublic 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.Doublepublic final void setLocation(Point2D p)
setLocation in class Point2Dpublic String toString()
toString in class Point2D.Doublepublic final double getCharge()
public final void setCharge(double charge)
public final void setMoveObserver(MoveObserver moveObserver)
Copyright © 2017. All rights reserved.