42 :
piv(fpiv),
dir(unit_vec(fdir)) {}
44 pvecerror(
"straight::straight(const point& fp1, const point& fp2)");
46 dir = unit_vec(fp2 - fp1);
94 return sl1 == sl2 ? 0 : 1;
146std::ostream&
operator<<(std::ostream& file,
const straight& s);
#define check_econd12(a, sign, b, stream)
Plane, defined by defined by a point and a vector normal to the plane.
Straight line, as combination of vector and point.
point cross(const straight &sl, vfloat prec) const
point piv
Origin point, pivot.
vfloat vecdistance(const straight &sl, int &type_of_cross, point pt[2]) const
Shortest distance between two lines, may be negative.
friend int operator!=(const straight &sl1, const straight &sl2)
friend std::ostream & operator<<(std::ostream &file, const straight &s)
friend int operator==(const straight &sl1, const straight &sl2)
friend bool apeq(const straight &sl1, const straight &sl2, vfloat prec)
straight(const point &fpiv, const vec &fdir)
vfloat distance(const straight &sl, int &type_of_cross, point pt[2]) const
straight(const point &fp1, const point &fp2)
int check_point_in(const point &fp, vfloat prec) const
virtual absref_transmit get_components() override
straight & operator=(const straight &fsl)
Copy assignment operator.
vec dir
Direction, unit vector.
straight(const straight &s)
Copy constructor.
static absref absref::* aref[2]
std::ostream & operator<<(std::ostream &file, const BGMesh &bgm)
#define pvecerror(string)