Searched refs:Vector2D (Results 1 – 5 of 5) sorted by relevance
18 Vector2D::Vector2D() : in Vector2D() function in Vector2D22 Vector2D::Vector2D(float x, float y) : in Vector2D() function in Vector2D26 Vector2D Vector2D::copy() { in copy()27 Vector2D v(mX, mY); in copy()31 void Vector2D::add(const Vector2D& v) { in add()36 void Vector2D::sub(const Vector2D& v) { in sub()41 void Vector2D::scale(float s) { in scale()46 float Vector2D::distance(const Vector2D& v) { in distance()52 void Vector2D::normalize() { in normalize()59 void Vector2D::limit(float max) { in limit()[all …]
17 class Vector2D {19 Vector2D();20 Vector2D(float x, float y);21 Vector2D copy();23 void add(const Vector2D& v);24 void sub(const Vector2D& v);29 float distance(const Vector2D& v);
24 Vector2D separation; in flock()26 Vector2D alignment; in flock()28 Vector2D cohesion; in flock()37 Vector2D tmp = mPosition.copy(); in flock()70 Vector2D desired = cohesion.copy(); in flock()
35 Vector2D mPosition;36 Vector2D mVelocity;37 Vector2D mAcceleration;
156 Vector2D* pos = &(b->mPosition); in updateSceneGraphs()157 Vector2D* vel = &(b->mVelocity); in updateSceneGraphs()