|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IParticleI
Class of an implementation of IDynamicObject to have physical attributes of point. It has attributes of position, velocity, acceleration, force, and mass. Position is provided from outside to be linked.
Method Summary | |
---|---|
IVec |
acc()
get acceleration. |
IVec |
acceleration()
get acceleration. |
IParticleI |
addForce(double fx,
double fy,
double fz)
alias of push |
IParticleI |
addForce(IVecI f)
alias of push |
double |
decay()
|
IParticleI |
decay(double d)
|
IParticleI |
fix()
fix movement |
boolean |
fixed()
check if it's fixed |
IVec |
force()
get force |
IParticleI |
force(IVecI v)
set force |
IVec |
frc()
get force |
IParticleI |
frc(IVecI v)
set force |
double |
fric()
get friction |
IParticleI |
fric(double f)
set friction |
double |
friction()
get friction |
IParticleI |
friction(double f)
set friction |
double |
mass()
get mass |
IParticleI |
mass(double m)
set mass |
IVec |
pos()
get position |
IParticleI |
pos(IVecI v)
set position |
IVec |
position()
get position |
IParticleI |
position(IVecI v)
set position |
IParticleI |
pull(double fx,
double fy,
double fz)
equivalent to push(f.dup().neg()) |
IParticleI |
pull(IVecI f)
equivalent to push(f.dup().neg()) |
IParticleI |
push(double fx,
double fy,
double fz)
adding force to particle |
IParticleI |
push(IVecI f)
adding force to particle |
IParticleI |
removeTarget(int i)
remove target object. |
IParticleI |
removeTarget(IObject obj)
remove target object. |
IParticleI |
reset()
setting force zero |
IParticleI |
resetForce()
alias of reset |
boolean |
skipUpdateOnce()
for other agent to control particle |
IParticleI |
skipUpdateOnce(boolean f)
for other agent to control particle |
IObject |
target(int i)
get target object. |
IParticleI |
target(IObject targetObj)
add terget object to be updated by this dynamic object. |
int |
targetNum()
get total target number. |
java.util.ArrayList<IObject> |
targets()
get all target objects. |
IParticleI |
unfix()
unfix movement |
void |
updateTarget()
update all terget objects (should be called when the dynamic object is updated). |
IVec |
vel()
get velocity |
IParticleI |
vel(IVecI v)
set velocity |
IVec |
velocity()
get velocity |
IParticleI |
velocity(IVecI v)
set velocity |
Method Detail |
---|
double mass()
IParticleI mass(double m)
IVec position()
IVec pos()
IParticleI position(IVecI v)
IParticleI pos(IVecI v)
IVec velocity()
IVec vel()
IParticleI velocity(IVecI v)
IParticleI vel(IVecI v)
IVec acceleration()
IVec acc()
IVec force()
IVec frc()
IParticleI force(IVecI v)
IParticleI frc(IVecI v)
double friction()
double fric()
IParticleI friction(double f)
IParticleI fric(double f)
double decay()
IParticleI decay(double d)
IParticleI push(IVecI f)
IParticleI push(double fx, double fy, double fz)
IParticleI pull(IVecI f)
IParticleI pull(double fx, double fy, double fz)
IParticleI addForce(IVecI f)
IParticleI addForce(double fx, double fy, double fz)
IParticleI reset()
IParticleI resetForce()
IParticleI fix()
IParticleI unfix()
boolean fixed()
IParticleI skipUpdateOnce(boolean f)
boolean skipUpdateOnce()
IParticleI target(IObject targetObj)
int targetNum()
IObject target(int i)
java.util.ArrayList<IObject> targets()
IParticleI removeTarget(int i)
IParticleI removeTarget(IObject obj)
void updateTarget()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |