gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
|
Go to the documentation of this file.
36 inline double x(
void)
const;
37 inline double y(
void)
const;
46 operator double *() {
return P; }
49 if(other.
P[0] <
P[0])
return true;
50 if(other.
P[0] >
P[0])
return false;
51 if(other.
P[1] <
P[1])
return true;
54 const double *
data()
const {
return P; }
126 double x =
P[0] - p.
P[0],
y =
P[1] - p.
P[1];
127 return std::sqrt(
x *
x +
y *
y);
SPoint2 operator+(const SPoint2 &a, const SPoint2 &b)
void operator+=(const SPoint2 &p)
const double * data() const
SPoint2 operator-(const SPoint2 &a, const SPoint2 &b)
SPoint2(double x=0.0, double y=0.0)
void operator-=(const SPoint2 &p)
SPoint2 operator*(double mult) const
void position(double *) const
SPoint2 & operator=(const SPoint2 &p)
void getPosition(double *xx, double *yy) const
bool operator<(const SPoint2 &other) const
Quaternion mult(const Quaternion &A, const Quaternion &B)
void setPosition(double xx, double yy)
SPoint2(const SPoint2 &pt)
double distance(const SPoint2 &p) const
void operator*=(double mult)