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
fea5a776
Commit
fea5a776
authored
Nov 11, 2008
by
David Adam
Committed by
Alexandre Julliard
Nov 11, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx8: Simplify D3DXQuaternionInverse.
parent
86d7f9f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
math.c
dlls/d3dx8/math.c
+4
-11
No files found.
dlls/d3dx8/math.c
View file @
fea5a776
...
...
@@ -940,14 +940,8 @@ D3DXQUATERNION* WINAPI D3DXQuaternionExp(D3DXQUATERNION *pout, CONST D3DXQUATERN
D3DXQUATERNION
*
WINAPI
D3DXQuaternionInverse
(
D3DXQUATERNION
*
pout
,
CONST
D3DXQUATERNION
*
pq
)
{
D3DXQUATERNION
temp
;
FLOAT
norm
;
temp
.
x
=
0
.
0
f
;
temp
.
y
=
0
.
0
f
;
temp
.
z
=
0
.
0
f
;
temp
.
w
=
0
.
0
f
;
norm
=
D3DXQuaternionLengthSq
(
pq
);
if
(
!
norm
)
{
...
...
@@ -958,11 +952,10 @@ D3DXQUATERNION* WINAPI D3DXQuaternionInverse(D3DXQUATERNION *pout, CONST D3DXQUA
}
else
{
D3DXQuaternionConjugate
(
&
temp
,
pq
);
pout
->
x
=
temp
.
x
/
norm
;
pout
->
y
=
temp
.
y
/
norm
;
pout
->
z
=
temp
.
z
/
norm
;
pout
->
w
=
temp
.
w
/
norm
;
pout
->
x
=
-
pq
->
x
/
norm
;
pout
->
y
=
-
pq
->
y
/
norm
;
pout
->
z
=
-
pq
->
z
/
norm
;
pout
->
w
=
pq
->
w
/
norm
;
}
return
pout
;
}
...
...
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