PhysicsHelpers.hpp
Go to the documentation of this file.
ValueType LengthSquared() const
Definition: MatrixExpression-Impl.hpp:286
double ComputePressureFromEos(double density, double targetDensity, double eosScale, double eosExponent, double negativePressureScale)
Definition: PhysicsHelpers.hpp:49
ValueType Length() const
Definition: MatrixExpression-Impl.hpp:278
Vector< double, N > ProjectAndApplyFriction(const Vector< double, N > &vel, const Vector< double, N > &normal, double frictionCoefficient)
Definition: PhysicsHelpers.hpp:35
Definition: Matrix.hpp:27
std::enable_if_t<(IsMatrixSizeDynamic< Rows, Cols >)||Cols==1) &&(IsMatrixSizeDynamic< R, C >)||C==1), U > Dot(const MatrixExpression< T, R, C, E > &expression) const
Definition: MatrixExpression-Impl.hpp:391
Definition: pybind11Utils.hpp:20
std::enable_if_t<(IsMatrixSizeDynamic< Rows, Cols >)||((Rows==2||Rows==3) &&Cols==1)) &&(IsMatrixSizeDynamic< R, C >)||((R==2||R==3) &&C==1)), Matrix< U, Rows, 1 > > Projected(const MatrixExpression< T, R, C, E > &normal) const
Returns the projected vector to the surface with given surface normal.
Definition: MatrixExpression-Impl.hpp:465
Vector2D ComputeDragForce(double dragCoefficient, double radius, const Vector2D &velocity)
Definition: PhysicsHelpers.hpp:18