1 Star 0 Fork 3

aalee / Kinect动作捕捉软件

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
MathFunc.h 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
FelixWang810 提交于 2020-09-18 15:11 . 功能代码
#ifndef _MATHFUNC_H
#define _MATHFUNC_H
#include <math.h>
#include <vector>
#include <cmath>
#include <iostream>
#include "Eigen/Dense"
#include "Eigen/LU"
#include "Eigen/Core"
#define PI 3.1415926
float DistancePoints(int x1, int y1, int x2, int y2);
float DistancePoints3D(int x1, int y1, int z1, int x2, int y2, int z2);
float DistancePointToLine(int x1, int y1, int x2, int y2, int x0, int y0);
float DistancePointToLine3D(int x1, int y1, int z1, int x2, int y2, int z2, int x0, int y0, int z0);
bool PointBetweenLines(int x1, int y1, int x2, int y2, int x0, int y0,int threshold);
//bool PointBetweenLines(int x1, int y1, int x2, int y2, int x0, int y0);
double AngleOfVectors(float x1, float y1, float x2, float y2);
double AngleOf3DVectors(float x1, float y1, float z1, float x2, float y2, float z2);
std::vector<float> GetRotationVector(std::vector<float> v1, std::vector<float> v2);
std::vector<float> matrix2angle(Eigen::Matrix3d rotateMatrix);
std::vector<float> GetRotationQuat(std::vector<float> Quat1, std::vector<float> Quat2);
#endif // #ifndef _MATHFUNC_H
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/aalee/kinect-motion-capture-software.git
git@gitee.com:aalee/kinect-motion-capture-software.git
aalee
kinect-motion-capture-software
Kinect动作捕捉软件
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891