Class AgentMsgHelpers.PosMsg
java.lang.Object
AgentMsgHelpers.PosMsg
- All Implemented Interfaces:
- IMsg
- Enclosing class:
- AgentMsgHelpers
public static class AgentMsgHelpers.PosMsg
- extends java.lang.Object
- implements IMsg
Message class to hold a position in n dimensions
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AgentMsgHelpers.PosMsg
public AgentMsgHelpers.PosMsg()
AgentMsgHelpers.PosMsg
public AgentMsgHelpers.PosMsg(double[] arrLfPosArr,
int nIdxStart,
int nDim)
AgentMsgHelpers.PosMsg
public AgentMsgHelpers.PosMsg(AgentMsgHelpers.PosMsg src)
makeCopy
public AgentMsgHelpers.PosMsg makeCopy()
- Specified by:
makeCopy
in interface IMsg
getDistSqrd
public double getDistSqrd(AgentMsgHelpers.PosMsg posB)
getDist
public double getDist(AgentMsgHelpers.PosMsg posB)
getPos
public double getPos(int i)
getPosArrCpy
public double[] getPosArrCpy()
setPosArr
public void setPosArr(double[] arrLfPosArr,
int nIdxStart,
int nDim)