1-1、Point.h
#ifndef MY_POINT
#define MY_POINT
class Point{
private:
double _x;
double _y;
public:
Point(double x,double y);
double getX();
double getY();
};
#endif
1-2、Point.cpp
#include"Point.h"
#include<iostream>
Point::Point(double x,double y)
{this->_x=x;
this->_y=y;}
double Point::getX()
{return this->_x;}
double Point::getY()
{return this->_y;}
2-1、Frame.h
#ifndef MY_POINT
#define MY_POINT
#include<cmath>
#include<Eigen/Dense>
#include"Point.h"
class WordFrame{};
class JointFrame{};
class TaskFrame{};
#endif
2-2、Frame.cpp
#include"Frame.h"
时间: 2024-12-13 14:02:23