📄 line.h
字号:
// Line.h: interface for the Line class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_LINE_H__9A9B6C22_D015_4640_88C6_C55774193D02__INCLUDED_)
#define AFX_LINE_H__9A9B6C22_D015_4640_88C6_C55774193D02__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "Point.h"
#include "Angle.h"
class Line
{
public:
Point Start,End;
double Offset;
Line();
Point Inersection(Line l);
Line& operator =(Line l);
BOOL Nearest(Point p, Point* IntersP,double* dist);//在直线右侧*dist为负,反之为正
BOOL Nearest(double x,double y, Point* IntersP,double* dist);
BOOL IsInTheLine(Point P,double det=0.003);
BOOL IsInTheLine(double x,double y,double det=0.003);
BOOL IsInTheRightSide(double x,double y);
Point GetCentrlPoint(double l0,Angle* RoadDirection,double dist=0);
virtual ~Line();
};
#endif // !defined(AFX_LINE_H__9A9B6C22_D015_4640_88C6_C55774193D02__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -