31 lines
526 B
C++
31 lines
526 B
C++
#include <string>
|
|
using namespace std;
|
|
struct onePointPos//单次坐标
|
|
{
|
|
//小数点默认两位
|
|
onePointPos(int countIn,
|
|
int xPos1, int xPos2, int xPos3,
|
|
int yPos1, int yPos2, int yPos3,
|
|
int zPos1, int zPos2, int zPos3)
|
|
{
|
|
count = countIn;
|
|
|
|
xPos = xPos2*100 + xPos3;
|
|
xPos = (xPos1 == 1) ? xPos : -xPos;
|
|
|
|
yPos = yPos2 * 100 + yPos3;
|
|
yPos = (yPos1 == 1) ? yPos : -yPos;
|
|
|
|
zPos = zPos2 * 100 + zPos3;
|
|
zPos = (zPos1 == 1) ? zPos : -zPos;
|
|
}
|
|
int count;
|
|
int xPos;
|
|
int yPos;
|
|
int zPos;
|
|
};
|
|
|
|
class laserPositioning
|
|
{
|
|
|
|
}; |