Lines Matching refs:mPosition
17 mPosition(x, y) { in Boid()
33 float dist = mPosition.distance(b->mPosition); in flock()
37 Vector2D tmp = mPosition.copy(); in flock()
38 tmp.sub(b->mPosition); in flock()
49 cohesion.add(b->mPosition); in flock()
71 desired.sub(mPosition); in flock()
84 mPosition.add(mVelocity); in flock()
86 if (mPosition.mX < -limitX) { in flock()
87 mPosition.mX = limitX; in flock()
88 } else if (mPosition.mX > limitX) { in flock()
89 mPosition.mX = -limitX; in flock()
91 if (mPosition.mY < -limitY) { in flock()
92 mPosition.mY = limitY; in flock()
93 } else if (mPosition.mY > limitY) { in flock()
94 mPosition.mY = -limitY; in flock()