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
a00353b3
Commit
a00353b3
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 D3DXPlaneDotNormalize.
parent
3247fa0d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
math.c
dlls/d3dx8/tests/math.c
+11
-0
d3dx8math.inl
include/d3dx8math.inl
+6
-0
No files found.
dlls/d3dx8/tests/math.c
View file @
a00353b3
...
@@ -60,6 +60,17 @@ static void D3DXPlaneTest(void)
...
@@ -60,6 +60,17 @@ static void D3DXPlaneTest(void)
expected
=
0
.
0
f
;
expected
=
0
.
0
f
;
got
=
D3DXPlaneDotCoord
(
NULL
,
NULL
),
got
=
D3DXPlaneDotCoord
(
NULL
,
NULL
),
ok
(
expected
==
got
,
"Expected : %f, Got : %f
\n
"
,
expected
,
got
);
ok
(
expected
==
got
,
"Expected : %f, Got : %f
\n
"
,
expected
,
got
);
/*_______________D3DXPlaneDotNormal______________*/
expected
=
-
35
.
0
f
;
got
=
D3DXPlaneDotNormal
(
&
plane
,
&
vec
),
ok
(
expected
==
got
,
"Expected : %f, Got : %f
\n
"
,
expected
,
got
);
expected
=
0
.
0
f
;
got
=
D3DXPlaneDotNormal
(
NULL
,
&
vec
),
ok
(
expected
==
got
,
"Expected : %f, Got : %f
\n
"
,
expected
,
got
);
expected
=
0
.
0
f
;
got
=
D3DXPlaneDotNormal
(
NULL
,
NULL
),
ok
(
expected
==
got
,
"Expected : %f, Got : %f
\n
"
,
expected
,
got
);
}
}
static
void
D3X8QuaternionTest
(
void
)
static
void
D3X8QuaternionTest
(
void
)
...
...
include/d3dx8math.inl
View file @
a00353b3
...
@@ -270,6 +270,12 @@ static inline FLOAT D3DXPlaneDotCoord(CONST D3DXPLANE *pp, CONST D3DXVECTOR4 *pv
...
@@ -270,6 +270,12 @@ static inline FLOAT D3DXPlaneDotCoord(CONST D3DXPLANE *pp, CONST D3DXVECTOR4 *pv
return ( (pp->a) * (pv->x) + (pp->b) * (pv->y) + (pp->c) * (pv->z) + (pp->d) );
return ( (pp->a) * (pv->x) + (pp->b) * (pv->y) + (pp->c) * (pv->z) + (pp->d) );
}
}
static inline FLOAT D3DXPlaneDotNormal(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) );
}
/*__________________D3DXQUATERNION____________________*/
/*__________________D3DXQUATERNION____________________*/
static inline D3DXQUATERNION* D3DXQuaternionConjugate(D3DXQUATERNION *pout, CONST D3DXQUATERNION *pq)
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