42 :
piv(fpiv),
dir(unit_vec(fdir)) {}
49 pvecerror(
"straight::straight(const point& fp1, const point& fp2)");
51 dir = unit_vec(fp2 - fp1);
71 return sl1 == sl2 ? 0 : 1;
144std::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.
Definition of 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
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
static absrefabsref::*[2] aref
virtual absref_transmit get_components() override
straight & operator=(const straight &fsl)
vec dir
Direction, unit vector.
std::ostream & operator<<(std::ostream &file, const BGMesh &bgm)
#define pvecerror(string)