2 Star 4 Fork 3

danel996 / AutoCAD-ObjectArx

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CGetPointUtil.cpp 639 Bytes
一键复制 编辑 原始数据 按行查看 历史
lysjq 提交于 2018-07-15 15:21 . Some ObjectArx class
#include "stdafx.h"
#include "CGetPointUtil.h"
CGetPointUtil::CGetPointUtil()
{
}
CGetPointUtil::~CGetPointUtil()
{
}
AcGePoint3d CGetPointUtil::GetMiddlePoint(const AcGePoint3d & FirstPoint, const AcGePoint3d & SecondPoint)
{
double x = (FirstPoint.x + SecondPoint.x)*0.5;
double y = (FirstPoint.y + SecondPoint.y)*0.5;
double z = (FirstPoint.z + SecondPoint.z)*0.5;
return AcGePoint3d(x,y,z);
}
AcGePoint2d CGetPointUtil::GetMiddlePoint(const AcGePoint2d & FirstPoint, const AcGePoint2d & SecondPoint)
{
double x = (FirstPoint.x + SecondPoint.x)*0.5;
double y= (FirstPoint.y + SecondPoint.y)*0.5;
return AcGePoint2d(x,y);
}
1
https://gitee.com/anheihb03dlj/AutoCAD-ObjectArx.git
git@gitee.com:anheihb03dlj/AutoCAD-ObjectArx.git
anheihb03dlj
AutoCAD-ObjectArx
AutoCAD-ObjectArx
master

搜索帮助