- initial version
git-svn-id: http://moon:8086/svn/software/trunk/projects/mpsk_rx_gui@14 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
|
||||
//[Headers] You can add your own extra header files here...
|
||||
//[/Headers]
|
||||
|
||||
#include <cmath>
|
||||
#include "IQPlaneComponent.h"
|
||||
|
||||
|
||||
@@ -158,6 +158,9 @@ void IQPlaneComponent::pointAdd(sym_err_t *pPoint, uint32_t numPoints)
|
||||
|
||||
float IQPlaneComponent::getScreenCoordX(float x)
|
||||
{
|
||||
if (isnan(x) || isinf(x))
|
||||
return 0;
|
||||
|
||||
if ((x > 1.0) || (x < -1.0))
|
||||
return 0;
|
||||
|
||||
@@ -166,6 +169,9 @@ float IQPlaneComponent::getScreenCoordX(float x)
|
||||
|
||||
float IQPlaneComponent::getScreenCoordY(float y)
|
||||
{
|
||||
if (isnan(y) || isinf(y))
|
||||
return 0;
|
||||
|
||||
if ((y > 1.0) || (y < -1.0))
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user