Searched refs:desired (Results 1 – 3 of 3) sorted by relevance
70 Vector2D desired = cohesion.copy(); in flock() local71 desired.sub(mPosition); in flock()72 float d = desired.magnitude(); in flock()74 desired.normalize(); in flock()75 desired.scale(MAX_SPEED * ((d < 100.0f) ? d / 100.0f : 1)); in flock()76 desired.sub(mVelocity); in flock()77 desired.limit(MAX_FORCE); in flock()78 mAcceleration.add(desired); in flock()
139 val desired = Layout.getDesiredWidth(sampleText, mPaint) in testClusterCount_Multiline() constant140 val layout = getLayout(sampleText, mPaint, (desired / 3).toInt()) in testClusterCount_Multiline()
120 Once the device is in the desired state, do the following: