Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Andrew Bauer
VTK
Commits
f9cc3f08
Commit
f9cc3f08
authored
Jul 09, 1994
by
Will Schroeder
Browse files
ENH: Changed VectorMultiply to point multiply.
parent
06e86810
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/Mat4x4.hh
View file @
f9cc3f08
...
...
@@ -39,7 +39,7 @@ class vlMatrix4x4 : public vlObject
void
Transpose
(
vlMatrix4x4
in
,
vlMatrix4x4
&
out
);
void
Transpose
(
void
)
{
Transpose
(
*
this
,
*
this
);};
void
Vector
Multiply
(
float
in
[
4
],
float
out
[
4
]);
void
Point
Multiply
(
float
in
[
4
],
float
out
[
4
]);
void
Adjoint
(
vlMatrix4x4
&
in
,
vlMatrix4x4
&
out
);
float
Determinant
(
vlMatrix4x4
&
in
);
char
*
GetClassName
()
{
return
"vlMatrix4x4"
;};
...
...
src/Mat4x4.cc
View file @
f9cc3f08
...
...
@@ -59,7 +59,7 @@ void vlMatrix4x4::operator= (float element)
this
->
Modified
();
}
void
vlMatrix4x4
::
Vector
Multiply
(
float
in
[
4
],
float
result
[
4
])
void
vlMatrix4x4
::
Point
Multiply
(
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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment