|
|||||||||
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 | |
---|---|
IParticleI |
addForce(IVecI f)
alias of push |
double |
decay()
|
IParticleI |
decay(double d)
|
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(IVecI f)
equivalent to push(f.dup().neg()) |
IParticleI |
push(IVecI f)
adding force to particle |
IParticleI |
reset()
setting force zero |
IParticleI |
resetForce()
alias of reset |
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 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 pull(IVecI f)
IParticleI addForce(IVecI f)
IParticleI reset()
IParticleI resetForce()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |