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

时间:2023-01-20 21:35:36

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;
};

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

Line.cpp


未完 ......

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