|
|||||||||
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)
|
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 |
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 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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |