Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
6766f9c1
Commit
6766f9c1
authored
Feb 24, 2008
by
Gerald Pfeifer
Committed by
Alexandre Julliard
Feb 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx8: Simplify D3DXMatrixInverse().
parent
3ed963dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
13 deletions
+6
-13
math.c
dlls/d3dx8/math.c
+6
-13
No files found.
dlls/d3dx8/math.c
View file @
6766f9c1
...
...
@@ -114,7 +114,7 @@ D3DXMATRIX* WINAPI D3DXMatrixInverse(D3DXMATRIX *pout, FLOAT *pdeterminant, CONS
{
int
a
,
i
,
j
;
D3DXVECTOR4
v
,
vec
[
3
];
FLOAT
cofactor
,
det
;
FLOAT
det
;
det
=
D3DXMatrixfDeterminant
(
pm
);
if
(
!
det
)
return
NULL
;
...
...
@@ -134,19 +134,12 @@ D3DXMATRIX* WINAPI D3DXMatrixInverse(D3DXMATRIX *pout, FLOAT *pdeterminant, CONS
}
}
D3DXVec4Cross
(
&
v
,
&
vec
[
0
],
&
vec
[
1
],
&
vec
[
2
]);
for
(
j
=
0
;
j
<
4
;
j
++
)
{
switch
(
j
)
{
case
0
:
cofactor
=
v
.
x
;
break
;
case
1
:
cofactor
=
v
.
y
;
break
;
case
2
:
cofactor
=
v
.
z
;
break
;
case
3
:
cofactor
=
v
.
w
;
break
;
}
pout
->
u
.
m
[
j
][
i
]
=
pow
(
-
1
.
0
f
,
i
)
*
cofactor
/
det
;
}
pout
->
u
.
m
[
0
][
i
]
=
pow
(
-
1
.
0
f
,
i
)
*
v
.
x
/
det
;
pout
->
u
.
m
[
1
][
i
]
=
pow
(
-
1
.
0
f
,
i
)
*
v
.
y
/
det
;
pout
->
u
.
m
[
2
][
i
]
=
pow
(
-
1
.
0
f
,
i
)
*
v
.
z
/
det
;
pout
->
u
.
m
[
3
][
i
]
=
pow
(
-
1
.
0
f
,
i
)
*
v
.
w
/
det
;
}
return
pout
;
return
pout
;
}
D3DXMATRIX
*
WINAPI
D3DXMatrixLookAtLH
(
D3DXMATRIX
*
pout
,
CONST
D3DXVECTOR3
*
peye
,
CONST
D3DXVECTOR3
*
pat
,
CONST
D3DXVECTOR3
*
pup
)
...
...
Write
Preview
Markdown
is supported
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