示例#1
0
btMaterial::btMaterial(btScalar youngModulus, btScalar poissonRatio):
    m_e(youngModulus),
    m_nu(poissonRatio),
    m_E(6, 6)
{
    computeE();
}
示例#2
0
int main()
{
    int n;
    float epsilon;

    printf("Enter a value for n: ");
    scanf("%d", &n);

    printf("Enter a value for E (epsilon): ");
    scanf("%f", &epsilon);

    printf("\n");

    printf("e = %f\n", computeE(n, epsilon));

    return 0;
}
示例#3
0
void btMaterial::setPoissonRatio(btScalar nu)
{
    m_nu = nu;
    computeE();
}
示例#4
0
void btMaterial::setYoungModulusAndPoissonRatio(btScalar youngModulus, btScalar poissonRatio)
{
    m_e = youngModulus;
    m_nu = poissonRatio;
    computeE();
}
示例#5
0
void btMaterial::setYoungModulus(btScalar e)
{
    m_e = e;
    computeE();
}