Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
1805369b
Commit
1805369b
authored
15 years ago
by
Karl Stiefvater (qarl)
Browse files
Options
Downloads
Patches
Plain Diff
handle reflected geometry in scene import
implement determinant for 4x4 matrices fix materials for collada <polygon>
parent
011b0b0e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
indra/llmath/m4math.cpp
+27
-2
27 additions, 2 deletions
indra/llmath/m4math.cpp
with
27 additions
and
2 deletions
indra/llmath/m4math.cpp
+
27
−
2
View file @
1805369b
...
@@ -221,8 +221,33 @@ const LLMatrix4& LLMatrix4::transpose()
...
@@ -221,8 +221,33 @@ const LLMatrix4& LLMatrix4::transpose()
F32
LLMatrix4
::
determinant
()
const
F32
LLMatrix4
::
determinant
()
const
{
{
llerrs
<<
"Not implemented!"
<<
llendl
;
F32
value
=
return
0.
f
;
mMatrix
[
0
][
3
]
*
mMatrix
[
1
][
2
]
*
mMatrix
[
2
][
1
]
*
mMatrix
[
3
][
0
]
-
mMatrix
[
0
][
2
]
*
mMatrix
[
1
][
3
]
*
mMatrix
[
2
][
1
]
*
mMatrix
[
3
][
0
]
-
mMatrix
[
0
][
3
]
*
mMatrix
[
1
][
1
]
*
mMatrix
[
2
][
2
]
*
mMatrix
[
3
][
0
]
+
mMatrix
[
0
][
1
]
*
mMatrix
[
1
][
3
]
*
mMatrix
[
2
][
2
]
*
mMatrix
[
3
][
0
]
+
mMatrix
[
0
][
2
]
*
mMatrix
[
1
][
1
]
*
mMatrix
[
2
][
3
]
*
mMatrix
[
3
][
0
]
-
mMatrix
[
0
][
1
]
*
mMatrix
[
1
][
2
]
*
mMatrix
[
2
][
3
]
*
mMatrix
[
3
][
0
]
-
mMatrix
[
0
][
3
]
*
mMatrix
[
1
][
2
]
*
mMatrix
[
2
][
0
]
*
mMatrix
[
3
][
1
]
+
mMatrix
[
0
][
2
]
*
mMatrix
[
1
][
3
]
*
mMatrix
[
2
][
0
]
*
mMatrix
[
3
][
1
]
+
mMatrix
[
0
][
3
]
*
mMatrix
[
1
][
0
]
*
mMatrix
[
2
][
2
]
*
mMatrix
[
3
][
1
]
-
mMatrix
[
0
][
0
]
*
mMatrix
[
1
][
3
]
*
mMatrix
[
2
][
2
]
*
mMatrix
[
3
][
1
]
-
mMatrix
[
0
][
2
]
*
mMatrix
[
1
][
0
]
*
mMatrix
[
2
][
3
]
*
mMatrix
[
3
][
1
]
+
mMatrix
[
0
][
0
]
*
mMatrix
[
1
][
2
]
*
mMatrix
[
2
][
3
]
*
mMatrix
[
3
][
1
]
+
mMatrix
[
0
][
3
]
*
mMatrix
[
1
][
1
]
*
mMatrix
[
2
][
0
]
*
mMatrix
[
3
][
2
]
-
mMatrix
[
0
][
1
]
*
mMatrix
[
1
][
3
]
*
mMatrix
[
2
][
0
]
*
mMatrix
[
3
][
2
]
-
mMatrix
[
0
][
3
]
*
mMatrix
[
1
][
0
]
*
mMatrix
[
2
][
1
]
*
mMatrix
[
3
][
2
]
+
mMatrix
[
0
][
0
]
*
mMatrix
[
1
][
3
]
*
mMatrix
[
2
][
1
]
*
mMatrix
[
3
][
2
]
+
mMatrix
[
0
][
1
]
*
mMatrix
[
1
][
0
]
*
mMatrix
[
2
][
3
]
*
mMatrix
[
3
][
2
]
-
mMatrix
[
0
][
0
]
*
mMatrix
[
1
][
1
]
*
mMatrix
[
2
][
3
]
*
mMatrix
[
3
][
2
]
-
mMatrix
[
0
][
2
]
*
mMatrix
[
1
][
1
]
*
mMatrix
[
2
][
0
]
*
mMatrix
[
3
][
3
]
+
mMatrix
[
0
][
1
]
*
mMatrix
[
1
][
2
]
*
mMatrix
[
2
][
0
]
*
mMatrix
[
3
][
3
]
+
mMatrix
[
0
][
2
]
*
mMatrix
[
1
][
0
]
*
mMatrix
[
2
][
1
]
*
mMatrix
[
3
][
3
]
-
mMatrix
[
0
][
0
]
*
mMatrix
[
1
][
2
]
*
mMatrix
[
2
][
1
]
*
mMatrix
[
3
][
3
]
-
mMatrix
[
0
][
1
]
*
mMatrix
[
1
][
0
]
*
mMatrix
[
2
][
2
]
*
mMatrix
[
3
][
3
]
+
mMatrix
[
0
][
0
]
*
mMatrix
[
1
][
1
]
*
mMatrix
[
2
][
2
]
*
mMatrix
[
3
][
3
];
return
value
;
}
}
// Only works for pure orthonormal, homogeneous transform matrices.
// Only works for pure orthonormal, homogeneous transform matrices.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment