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
3247fa0d
Commit
3247fa0d
authored
Oct 23, 2007
by
David Adam
Committed by
Alexandre Julliard
Oct 24, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx8: Implement D3DXPlaneDotCoord.
parent
10259cd8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
math.c
dlls/d3dx8/tests/math.c
+11
-0
d3dx8math.inl
include/d3dx8math.inl
+7
-1
No files found.
dlls/d3dx8/tests/math.c
View file @
3247fa0d
...
...
@@ -49,6 +49,17 @@ static void D3DXPlaneTest(void)
expected
=
0
.
0
f
;
got
=
D3DXPlaneDot
(
NULL
,
NULL
),
ok
(
expected
==
got
,
"Expected : %f, Got : %f
\n
"
,
expected
,
got
);
/*_______________D3DXPlaneDotCoord________________*/
expected
=
-
28
.
0
f
;
got
=
D3DXPlaneDotCoord
(
&
plane
,
&
vec
),
ok
(
expected
==
got
,
"Expected : %f, Got : %f
\n
"
,
expected
,
got
);
expected
=
0
.
0
f
;
got
=
D3DXPlaneDotCoord
(
NULL
,
&
vec
),
ok
(
expected
==
got
,
"Expected : %f, Got : %f
\n
"
,
expected
,
got
);
expected
=
0
.
0
f
;
got
=
D3DXPlaneDotCoord
(
NULL
,
NULL
),
ok
(
expected
==
got
,
"Expected : %f, Got : %f
\n
"
,
expected
,
got
);
}
static
void
D3X8QuaternionTest
(
void
)
...
...
include/d3dx8math.inl
View file @
3247fa0d
...
...
@@ -258,12 +258,18 @@ static inline D3DXVECTOR4* D3DXVec4Subtract(D3DXVECTOR4 *pout, CONST D3DXVECTOR4
/*__________________D3DXQUATERNION____________________*/
static inline FLOAT D3DXPlaneDot(
CONST D3DXPLANE *pp, CONST D3DXVECTOR4 *pv)
static inline FLOAT D3DXPlaneDot(CONST D3DXPLANE *pp, CONST D3DXVECTOR4 *pv)
{
if ( !pp || !pv ) return 0.0f;
return ( (pp->a) * (pv->x) + (pp->b) * (pv->y) + (pp->c) * (pv->z) + (pp->d) * (pv->w) );
}
static inline FLOAT D3DXPlaneDotCoord(CONST D3DXPLANE *pp, CONST D3DXVECTOR4 *pv)
{
if ( !pp || !pv ) return 0.0f;
return ( (pp->a) * (pv->x) + (pp->b) * (pv->y) + (pp->c) * (pv->z) + (pp->d) );
}
/*__________________D3DXQUATERNION____________________*/
static inline D3DXQUATERNION* D3DXQuaternionConjugate(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