File compute_dyadic_mass.h
File List > affine_body > compute_dyadic_mass.h
Go to the documentation of this file
#pragma once
#include <uipc/common/type_define.h>
#include <uipc/common/dllexport.h>
#include <uipc/geometry/simplicial_complex.h>
namespace uipc::geometry::affine_body
{
UIPC_GEOMETRY_API void compute_dyadic_mass(const SimplicialComplex& sc,
Float rho,
//tex: $$ \sum \mathbf{m} $$
Float& m,
//tex: $$ \sum \mathbf{m} \bar{\mathbf{x}} $$
Vector3& m_x_bar,
//tex: $$ \sum \mathbf{m} \bar{\mathbf{x}} \cdot \bar{\mathbf{x}}^T$$
Matrix3x3& m_x_bar_x_bar);
} // namespace uipc::geometry::affine_body