|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectigeo.IDynamicsBase
igeo.ILineAgentGeo
public class ILineAgentGeo
Class of an agent with a line with start and end points.
Field Summary | |
---|---|
ICurve |
line
|
IVec |
pos
end point of line |
IVec |
root
start point of line |
Fields inherited from class igeo.IDynamicsBase |
---|
parent, targets |
Constructor Summary | |
---|---|
ILineAgentGeo()
|
|
ILineAgentGeo(IVec rootPos)
|
|
ILineAgentGeo(IVec rootPos,
IVec lineDir)
|
Method Summary | |
---|---|
IVec |
dif()
alias of dir() |
IVec |
dir()
direction from root to pos |
ICurve |
drawLine()
|
IVec |
end()
alias of pos() |
void |
hide()
|
ICurve |
line()
|
IVec |
pos()
current position, i.e. |
IVec |
prevPos()
alias of root() |
IVec |
pt1()
alias of root() |
IVec |
pt2()
alias of pos() |
IVec |
root()
previous position, i.e. |
void |
show()
|
IVec |
start()
alias of root() |
void |
update()
behavior definition of updating dynamics in each time frame |
Methods inherited from class igeo.IDynamicsBase |
---|
initDynamicsBase, initDynamicsBase, initDynamicsBase, interact, localDynamics, parent, parent, postinteract, postupdate, preinteract, preupdate, removeTarget, removeTarget, target, target, targetNum, targets, updateTarget |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public IVec pos
public IVec root
public ICurve line
Constructor Detail |
---|
public ILineAgentGeo(IVec rootPos, IVec lineDir)
public ILineAgentGeo(IVec rootPos)
public ILineAgentGeo()
Method Detail |
---|
public IVec pos()
public IVec end()
public IVec pt2()
public IVec root()
public IVec start()
public IVec prevPos()
public IVec pt1()
public IVec dir()
public IVec dif()
public ICurve drawLine()
public ICurve line()
public void hide()
public void show()
public void update()
IDynamicsBase
update
in interface IDynamics
update
in class IDynamicsBase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |