You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.8 KiB
C

/**
*
* @file FITKCircleAlg.h
* @brief
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-06-20
*
*/
#ifndef _FITK_CIRCLE_ALG_H___
#define _FITK_CIRCLE_ALG_H___
#include "FITKVec3D.h"
#include <QPair>
namespace Core
{
/**
* @brief
* @param[i] p1
* @param[i] p2
* @param[i] another P1 p2线
* @param[i] r
* @return QPair<FITKPoint, FITKPoint>
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-06-20
*/
QPair<FITKPoint, FITKPoint> GetCircleCenter(const FITKPoint& p1, const FITKPoint& p2, const FITKPoint& another,
const double r);
/**
* @brief
* @param[i] p1
* @param[i] p2
* @param[i] center 线
* @param[i] r
* @return FITKPoint
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-06-20
*/
FITKPoint GetMidPointOnArc(const FITKPoint& p1, const FITKPoint& p2, const FITKPoint& center, const double r);
/**
* @brief
* @param[i] p1 p2 p3 3
* @param[o] normal
* @param[o] center
* @param[o] r
* @author LiBaojun (libaojunqd@foxmail.com)
* @date 2024-06-20
*/
void GetCircleBy3Points(const FITKPoint& p1, const FITKPoint& p2, const FITKPoint& p3,
FITKPoint& center, FITKVec3D& normal, double& r);
}
#endif // _FITK_CIRCLE_ALG_H___