|
|
|
@ -82,17 +82,17 @@ static void vectorMulAdd(const Matrix &A, const Vector &B, float *C, float scale
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Computes B = AxB (matrix*vector)
|
|
|
|
|
static void vectorMul(const Matrix &A, float *C)
|
|
|
|
|
{
|
|
|
|
|
// Keep the original values
|
|
|
|
|
float a = C[0];
|
|
|
|
|
float b = C[1];
|
|
|
|
|
float c = C[2];
|
|
|
|
|
|
|
|
|
|
// Perform matrix multiplication, scaling and addition
|
|
|
|
|
for (int i=0;i<3;i++)
|
|
|
|
|
C[i] = a*A.v[i].array[0] + b*A.v[i].array[1] + c*A.v[i].array[2];
|
|
|
|
|
}
|
|
|
|
|
//static void vectorMul(const Matrix &A, float *C)
|
|
|
|
|
//{
|
|
|
|
|
// // Keep the original values
|
|
|
|
|
// float a = C[0];
|
|
|
|
|
// float b = C[1];
|
|
|
|
|
// float c = C[2];
|
|
|
|
|
|
|
|
|
|
// // Perform matrix multiplication, scaling and addition
|
|
|
|
|
// for (int i=0;i<3;i++)
|
|
|
|
|
// C[i] = a*A.v[i].array[0] + b*A.v[i].array[1] + c*A.v[i].array[2];
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ManualBulletShapeLoader::~ManualBulletShapeLoader()
|
|
|
|
|