Go to the source code of this file.
Classes  
struct  GEOM_FADE25D::Func_ltPointXYZ 
Functor to sort points lexicographically. More...  
struct  GEOM_FADE25D::Func_samePointXYZ 
Functor to compare two points in 3 dimensions. More...  
class  GEOM_FADE25D::Point2 
Point. More...  
struct  GEOM_FADE25D::VtxColor 
Functions  
Point2  GEOM_FADE25D::center (const Point2 &p0, const Point2 &p1) 
Compute the midpoint of p0 and p1. More...  
Point2  GEOM_FADE25D::centerWithShift (const Point2 &p0, const Point2 &p1) 
Compute the midpoint of p0 and p1 and adapt it. More...  
std::ostream &  GEOM_FADE25D::operator<< (std::ostream &stream, const Point2 &pnt) 
Print to stream.  
std::istream &  GEOM_FADE25D::operator>> (std::istream &stream, Point2 &pnt) 
StreamtoPoint.  
double  GEOM_FADE25D::sqDistance25D (const double x0, const double y0, const double z0, const Point2 &p1) 
Get the squared distance between two points in 2D. More...  
double  GEOM_FADE25D::sqDistance25D (const Point2 &p0, const Point2 &p1) 
Get the squared distance between two points. More...  
double  GEOM_FADE25D::sqDistance2D (const double x0, const double y0, const Point2 &p1) 
Get the squared distance between two points in 2D. More...  
double  GEOM_FADE25D::sqDistance2D (const Point2 &p0, const Point2 &p1) 
Get the squared distance between two points in 2D. More...  
Compute the midpoint of p0 and p1.
Compute the midpoint of p0 and p1 and adapt it.
Experimental new function that may change in the future. Thought for specific applications.
This function works like center() but additionally it adapts the midpoint to the segment (p0,p1) such that it is 'as collinear as possible' with p0 and p1 in the x/y plane. Bounds for the shift are 0.01 and 1 % of the range in x and ydirection.

inline 
Get the squared distance between two points in 2D.
Get the squared distance between two points.

inline 
Get the squared distance between two points in 2D.