Commit f9cc3f08 authored by Will Schroeder's avatar Will Schroeder
Browse files

ENH: Changed VectorMultiply to point multiply.

parent 06e86810
......@@ -39,7 +39,7 @@ class vlMatrix4x4 : public vlObject
void Transpose (vlMatrix4x4 in,vlMatrix4x4 & out);
void Transpose (void) { Transpose(*this,*this);};
void VectorMultiply(float in[4], float out[4]);
void PointMultiply(float in[4], float out[4]);
void Adjoint (vlMatrix4x4 & in,vlMatrix4x4 & out);
float Determinant (vlMatrix4x4 & in);
char *GetClassName () {return "vlMatrix4x4";};
......
......@@ -59,7 +59,7 @@ void vlMatrix4x4::operator= (float element)
this->Modified ();
}
void vlMatrix4x4::VectorMultiply(float in[4],float result[4])
void vlMatrix4x4::PointMultiply(float in[4],float result[4])
{
int i;
float v1 = in[0];
......@@ -103,7 +103,7 @@ void vlMatrix4x4::Invert (vlMatrix4x4 in,vlMatrix4x4 & out)
det = in.Determinant(in);
if ( fabs( det ) < SMALL_NUMBER) {
vlErrorMacro(<< "Singular matrix, no inverse! Determinant= " << det <<"\n");
vlErrorMacro(<< "Singular matrix, no inverse! Determinant= " << det );
det = 0.0;
return;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment