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
7d75ad82
Commit
7d75ad82
authored
Sep 26, 2012
by
Rico Schüller
Committed by
Alexandre Julliard
Sep 26, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Use float functions in D3DXQuaternionRotationYawPitchRoll().
parent
ce319e9d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
math.c
dlls/d3dx9_36/math.c
+17
-7
No files found.
dlls/d3dx9_36/math.c
View file @
7d75ad82
...
...
@@ -1424,15 +1424,25 @@ D3DXQUATERNION* WINAPI D3DXQuaternionRotationMatrix(D3DXQUATERNION *pout, CONST
return
pout
;
}
D3DXQUATERNION
*
WINAPI
D3DXQuaternionRotationYawPitchRoll
(
D3DXQUATERNION
*
p
out
,
FLOAT
yaw
,
FLOAT
pitch
,
FLOAT
roll
)
D3DXQUATERNION
*
WINAPI
D3DXQuaternionRotationYawPitchRoll
(
D3DXQUATERNION
*
out
,
FLOAT
yaw
,
FLOAT
pitch
,
FLOAT
roll
)
{
TRACE
(
"(%p, %f, %f, %f)
\n
"
,
pout
,
yaw
,
pitch
,
roll
)
;
FLOAT
syaw
,
cyaw
,
spitch
,
cpitch
,
sroll
,
croll
;
pout
->
x
=
sin
(
yaw
/
2
.
0
f
)
*
cos
(
pitch
/
2
.
0
f
)
*
sin
(
roll
/
2
.
0
f
)
+
cos
(
yaw
/
2
.
0
f
)
*
sin
(
pitch
/
2
.
0
f
)
*
cos
(
roll
/
2
.
0
f
);
pout
->
y
=
sin
(
yaw
/
2
.
0
f
)
*
cos
(
pitch
/
2
.
0
f
)
*
cos
(
roll
/
2
.
0
f
)
-
cos
(
yaw
/
2
.
0
f
)
*
sin
(
pitch
/
2
.
0
f
)
*
sin
(
roll
/
2
.
0
f
);
pout
->
z
=
cos
(
yaw
/
2
.
0
f
)
*
cos
(
pitch
/
2
.
0
f
)
*
sin
(
roll
/
2
.
0
f
)
-
sin
(
yaw
/
2
.
0
f
)
*
sin
(
pitch
/
2
.
0
f
)
*
cos
(
roll
/
2
.
0
f
);
pout
->
w
=
cos
(
yaw
/
2
.
0
f
)
*
cos
(
pitch
/
2
.
0
f
)
*
cos
(
roll
/
2
.
0
f
)
+
sin
(
yaw
/
2
.
0
f
)
*
sin
(
pitch
/
2
.
0
f
)
*
sin
(
roll
/
2
.
0
f
);
return
pout
;
TRACE
(
"out %p, yaw %f, pitch %f, roll %f
\n
"
,
out
,
yaw
,
pitch
,
roll
);
syaw
=
sinf
(
yaw
/
2
.
0
f
);
cyaw
=
cosf
(
yaw
/
2
.
0
f
);
spitch
=
sinf
(
pitch
/
2
.
0
f
);
cpitch
=
cosf
(
pitch
/
2
.
0
f
);
sroll
=
sinf
(
roll
/
2
.
0
f
);
croll
=
cosf
(
roll
/
2
.
0
f
);
out
->
x
=
syaw
*
cpitch
*
sroll
+
cyaw
*
spitch
*
croll
;
out
->
y
=
syaw
*
cpitch
*
croll
-
cyaw
*
spitch
*
sroll
;
out
->
z
=
cyaw
*
cpitch
*
sroll
-
syaw
*
spitch
*
croll
;
out
->
w
=
cyaw
*
cpitch
*
croll
+
syaw
*
spitch
*
sroll
;
return
out
;
}
D3DXQUATERNION
*
WINAPI
D3DXQuaternionSlerp
(
D3DXQUATERNION
*
out
,
const
D3DXQUATERNION
*
q1
,
...
...
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