9 const Vector2D center = 0.5*(p2_pos + p1_pos);
10 const Vector2D n = (p2_pos - p1_pos)/
abs(p2_pos-p1_pos);
13 return 0.5*(p1_vel+p2_vel)+
double ScalarProd(Vector3D const &v1, Vector3D const &v2)
Scalar product of two vectors.
Vector2D calc_face_vertex_velocity(const Vector2D &p1_pos, const Vector2D &p1_vel, const Vector2D &p2_pos, const Vector2D &p2_vel, const Vector2D &vertex)
Calculates the velocity of the vertices of a Voronoi face.
Calculates the velocity of the vertices of a Voronoi face.
double abs(Vector3D const &v)
Norm of a vector.
Vector2D zcross(Vector2D const &v)
Cross product of a vector in x,y plane with a unit vector in the z direction.