PhysicsHelpers.h
Go to the documentation of this file.
17 inline Vector2D ComputeDragForce(double dragCoefficient, double radius, const Vector2D& velocity)
24 inline Vector3D ComputeDragForce(double dragCoefficient, double radius, const Vector3D& velocity)
32 inline Vector<double, N> ProjectAndApplyFriction(const Vector<double, N>& vel, const Vector<double, N>& normal, double frictionCoefficient)
Vector2D ComputeDragForce(double dragCoefficient, double radius, const Vector2D &velocity)
Definition: PhysicsHelpers.h:17
double ComputePressureFromEos(double density, double targetDensity, double eosScale, double eosExponent, double negativePressureScale)
Definition: PhysicsHelpers.h:44
Vector< double, N > ProjectAndApplyFriction(const Vector< double, N > &vel, const Vector< double, N > &normal, double frictionCoefficient)
Definition: PhysicsHelpers.h:32
T LengthSquared() const
Returns the squared length of the vector.
Definition: Vector-Impl.h:282
Definition: pybind11Utils.h:24
T Length() const
Returns the length of the vector.
Definition: Vector-Impl.h:276