You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
829 B
C
46 lines
829 B
C
|
1 month ago
|
#pragma once
|
||
|
|
#ifndef AFX_EXT_CLASS
|
||
|
|
#define AFX_EXT_CLASS Q_DECL_IMPORT
|
||
|
|
#endif
|
||
|
|
#include "Vector.h"
|
||
|
|
#include "Point2D.h"
|
||
|
|
|
||
|
|
|
||
|
|
namespace GBase
|
||
|
|
{
|
||
|
|
|
||
|
|
class AFX_EXT_CLASS CLine2D : public CPoint2D
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
CLine2D(void);
|
||
|
|
~CLine2D(void);
|
||
|
|
|
||
|
|
int Create(double x1, double y1, double x2, double y2);
|
||
|
|
|
||
|
|
double DistanceToPoint(double x, double y);
|
||
|
|
double DistanceToPointOne(double x, double y);
|
||
|
|
|
||
|
|
int One(void);
|
||
|
|
double MininumPoint(double x, double y);
|
||
|
|
double MininumPointOne(double x, double y);
|
||
|
|
|
||
|
|
double x(double t);
|
||
|
|
double y(double t);
|
||
|
|
|
||
|
|
void RotatePt(double xs, double ys, double angle);
|
||
|
|
double Cross(CLine2D& OtherLine);
|
||
|
|
int Cross(CLine2D& OtherLine, double& x, double& y);
|
||
|
|
void Mirror(double& x, double& y);
|
||
|
|
|
||
|
|
void operator+=(double t);
|
||
|
|
void operator=(CLine2D& t);
|
||
|
|
|
||
|
|
public:
|
||
|
|
double a;
|
||
|
|
double b;
|
||
|
|
};
|
||
|
|
};
|
||
|
|
|
||
|
|
using namespace GBase;
|
||
|
|
|