Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
ef65fdda
Commit
ef65fdda
authored
Sep 27, 2012
by
Rico Schüller
Committed by
Alexandre Julliard
Sep 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Use float functions in D3DXQuaternionExp().
parent
9a281e5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
13 deletions
+14
-13
math.c
dlls/d3dx9_36/math.c
+14
-13
No files found.
dlls/d3dx9_36/math.c
View file @
ef65fdda
...
...
@@ -1263,28 +1263,29 @@ D3DXQUATERNION* WINAPI D3DXQuaternionBaryCentric(D3DXQUATERNION *pout, CONST D3D
return
pout
;
}
D3DXQUATERNION
*
WINAPI
D3DXQuaternionExp
(
D3DXQUATERNION
*
pout
,
CONST
D3DXQUATERNION
*
p
q
)
D3DXQUATERNION
*
WINAPI
D3DXQuaternionExp
(
D3DXQUATERNION
*
out
,
const
D3DXQUATERNION
*
q
)
{
FLOAT
norm
;
TRACE
(
"
(%p, %p)
\n
"
,
pout
,
p
q
);
TRACE
(
"
out %p, q %p
\n
"
,
out
,
q
);
norm
=
sqrt
(
pq
->
x
*
pq
->
x
+
pq
->
y
*
pq
->
y
+
pq
->
z
*
p
q
->
z
);
if
(
norm
)
norm
=
sqrt
f
(
q
->
x
*
q
->
x
+
q
->
y
*
q
->
y
+
q
->
z
*
q
->
z
);
if
(
norm
)
{
pout
->
x
=
sin
(
norm
)
*
p
q
->
x
/
norm
;
pout
->
y
=
sin
(
norm
)
*
p
q
->
y
/
norm
;
pout
->
z
=
sin
(
norm
)
*
p
q
->
z
/
norm
;
pout
->
w
=
cos
(
norm
);
out
->
x
=
sinf
(
norm
)
*
q
->
x
/
norm
;
out
->
y
=
sinf
(
norm
)
*
q
->
y
/
norm
;
out
->
z
=
sinf
(
norm
)
*
q
->
z
/
norm
;
out
->
w
=
cosf
(
norm
);
}
else
{
p
out
->
x
=
0
.
0
f
;
p
out
->
y
=
0
.
0
f
;
p
out
->
z
=
0
.
0
f
;
p
out
->
w
=
1
.
0
f
;
out
->
x
=
0
.
0
f
;
out
->
y
=
0
.
0
f
;
out
->
z
=
0
.
0
f
;
out
->
w
=
1
.
0
f
;
}
return
pout
;
return
out
;
}
D3DXQUATERNION
*
WINAPI
D3DXQuaternionInverse
(
D3DXQUATERNION
*
pout
,
CONST
D3DXQUATERNION
*
pq
)
...
...
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