编程语言
首页 > 编程语言> > C++ 根据两点式方法求直线并求两条直线的交点

C++ 根据两点式方法求直线并求两条直线的交点

作者:互联网

Line.h

#pragma once

//Microsoft Visual Studio 2015 Enterprise
//根据两点式方法求直线,并求两条直线的交点

#include"BoundaryPoint.h"
#include"Coordinates.h"

class Line
{
public:
    Line GetLine(BoundaryPoint sourcePoint, BoundaryPoint endPoint);
    Line GetLine(Coordinates sourcePoint, Coordinates endPoint);
    Coordinates CaculateCrossPoint(Line line1, Line line2);

private:
    double a;
    double b;
    double c;
};

wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==

Line.cpp


未完 ......

点击访问原文(进入后根据右侧标签,快速定位到本文)

标签:直线,并求,endPoint,BoundaryPoint,double,Coordinates,C++,Line
来源: https://www.cnblogs.com/sinicheveen/p/12009811.html