?? 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 + -