#include <circumf.h>
|
static absrefabsref::*[2] | aref |
|
Definition at line 25 of file circumf.h.
◆ circumf() [1/3]
Heed::circumf::circumf |
( |
| ) |
|
◆ circumf() [2/3]
Heed::circumf::circumf |
( |
const point & |
fpiv, |
|
|
const vec & |
fdir, |
|
|
vfloat |
frad |
|
) |
| |
Definition at line 21 of file circumf.cpp.
26}
#define check_econd11(a, signb, stream)
#define pvecerror(string)
◆ circumf() [3/3]
Heed::circumf::circumf |
( |
const circumf & |
f | ) |
|
◆ ~circumf()
virtual Heed::circumf::~circumf |
( |
| ) |
|
|
inlinevirtual |
◆ check_point_in()
int Heed::circumf::check_point_in |
( |
const point & |
fp, |
|
|
vfloat |
prec |
|
) |
| const |
Definition at line 52 of file circumf.cpp.
52 {
53
54 pvecerror(
"int circumf::check_point_in(const point &fp, vfloat prec) const");
56 if (check_perp(d,
dir, prec) != 1)
return 0;
57 if (
apeq(length(d),
rad))
return 1;
58 return 0;
59}
friend int apeq(const circumf &f1, const circumf &f2, vfloat prec)
◆ cross()
Definition at line 60 of file circumf.cpp.
60 {
61 pvecerror(
"int circumf::cross(const plane& pn, point pt[2]) const");
62 if (pn.distance(
piv) >
rad)
return 0;
64 straight sl(pnc, pn);
67 return -1;
68 }
71 return 0;
72 }
76 pt[0] = closest_pt;
77 return 1;
78 }
79 if (d >
rad)
return 0;
81 pt[0] = closest_pt + cat * sl.Gdir();
82 pt[1] = closest_pt - cat * sl.Gdir();
83 return 2;
84}
DoubleAc sqrt(const DoubleAc &f)
Referenced by Heed::splane::range().
◆ Gdir()
vec Heed::circumf::Gdir |
( |
void |
| ) |
const |
|
inline |
◆ get_components()
void Heed::circumf::get_components |
( |
ActivePtr< absref_transmit > & |
aref_tran | ) |
|
|
protectedvirtual |
Reimplemented from absref.
Definition at line 32 of file circumf.cpp.
32 {
33 aref_tran.pass(
new absref_transmit(2,
aref));
34}
static absrefabsref::*[2] aref
◆ Gpiv()
point Heed::circumf::Gpiv |
( |
void |
| ) |
const |
|
inline |
◆ Grad()
vfloat Heed::circumf::Grad |
( |
void |
| ) |
const |
|
inline |
◆ operator=()
Definition at line 47 of file circumf.h.
47 {
51 return *this;
52 }
◆ apeq
Definition at line 45 of file circumf.cpp.
45 {
46 pvecerror(
"int apeq(const circumf &f1, const circumf &f2, vfloat prec)");
47 if (check_par(f1.dir, f2.dir, prec) == 0) return 0;
48 if (
apeq(f1.piv, f2.piv, prec) &&
apeq(f1.rad, f2.rad, prec))
return 1;
49 return 0;
50}
Referenced by check_point_in(), and cross().
◆ not_apeq
Definition at line 60 of file circumf.h.
60 {
61 return apeq(f1, f2, prec) == 1 ? 0 : 1;
62 }
◆ operator!=
Definition at line 56 of file circumf.h.
56 {
57 return f1 == f2 ? 0 : 1;
58 }
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & |
file, |
|
|
const circumf & |
f |
|
) |
| |
|
friend |
Definition at line 86 of file circumf.cpp.
86 {
87 Ifile <<
"circumf(erence):\n";
89 Ifile <<
"rad=" << f.rad <<
'\n';
90 file << f.piv << f.dir;
92 return file;
93}
◆ operator==
Definition at line 36 of file circumf.cpp.
36 {
37 pvecerror(
"int operator==(const circumf &f1, const circumf &f2)");
38
39 if (!(f1.dir == f2.dir || f1.dir == -f2.dir)) return 0;
40 if (f1.piv == f2.piv && f1.rad == f2.rad)
41 return 1;
42 else
43 return 0;
44}
◆ aref
absref absref::* Heed::circumf::aref |
|
staticprotected |
◆ dir
◆ piv
◆ rad
The documentation for this class was generated from the following files: