double ScalarProd(Vector3D const &v1, Vector3D const &v2)
Scalar product of two vectors.
double calc_triangle_area(const Vector2D &p1, const Vector2D &p2, const Vector2D &p3)
Calculates the area of a triangle.
Calculates the area of a triangle.
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.