Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
TestRange function
SUBMITTED BY:
Guest
DATE:
April 17, 2014, 2:24 p.m.
FORMAT:
C++
SIZE:
378 Bytes
Raw
Download
Tweet
HITS:
702
Go to comments
Report
BOOL
CRollProfileI::TestRange
(
double
v
)
const
{
double
BL2
=
_BarrelLength
/
2
+
0.001
;
if
(
_nTypeProfile
==
SYM
)
{
// Test u SYMetrickeho pripadu Profilu
if
(
v
>=
0
&&
v
<=
BL2
)
return
TRUE
;
}
else
{
// Test u NOSYMetrickeho pripadu Profilu
if
(
v
>=
-
BL2
&&
v
<=
BL2
)
return
TRUE
;
}
return
FALSE
;
}
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus