0_0_33307385_32020.cpp:200:33: error: 'enable_if_t' in namespace 'std' does not name a template type
template <class T, class = std::enable_if_t<std::is_floating_point<T>::value>>
^
0_0_33307385_32020.cpp:200:44: error: expected '>' before '<' token
template <class T, class = std::enable_if_t<std::is_floating_point<T>::value>>
^
0_0_33307385_32020.cpp:229:26: error: template argument 2 is invalid
T distance(const Line3D<T>& l, const Point3D<T>& p) {
^
0_0_33307385_32020.cpp: In function 'T distance(const int&, const Point3D<T>&)':
0_0_33307385_32020.cpp:230:20: error: request for member 'a' in 'l', which is of non-class type 'const int'
return det(p - l.a, l.b - l.a).norm() / distance(l.a, l.b);
^
0_0_33307385_32020.cpp:230:25: error: request for member 'b' in 'l', which is of non-class type 'const int'
return det(p - l.a, l.b - l.a).norm() / distance(l.a, l.b);
^
0_0_33307385_32020.cpp:230:31: error: request for member 'a' in 'l', which is of non-class type 'const int'
return det(p - l.a, l.b - l.a).norm() / distance(l.a, l.b);
^
0_0_33307385_32020.cpp:230:54: error: request for member 'a' in 'l', which is of non-class type 'const int'
return det(p - l.a, l.b - l.a).norm() / distance(l.a, l.b);
^
0_0_33307385_32020.cpp:230:59: error: request for member 'b' in 'l', which is of non-class type 'const int'
return det(p - l.a, l.b - l.a).norm() / distance(l.a, l.b);
^
0_0_33307385_32020.cpp: At global scope:
0_0_33307385_32020.cpp:234:47: error: template argument 2 is invalid
T distance(const Point3D<T>& p, const Line3D<T>& l) {
^
0_0_33307385_32020.cpp:239:26: error: template argument 2 is invalid
T distance(const Line3D<T>& u, const Line3D<T>& v) {
^
0_0_33307385_32020.cpp:239:46: error: template argument 2 is invalid
T distance(const Line3D<T>& u, const Line3D<T>& v) {
^
0_0_33307385_32020.cpp: In function 'T distance(const int&, const int&)':
0_0_33307385_32020.cpp:240:24: error: request for member 'a' in 'u', which is of non-class type 'const int'
Point3D<T> p = det(u.a - u.b, v.a - v.b);
^
0_0_33307385_32020.cpp:240:30: error: request for member 'b' in 'u', which is of non-class type 'const int'
Point3D<T> p = det(u.a - u.b, v.a - v.b);
^
0_0_33307385_32020.cpp:240:35: error: request for member 'a' in 'v', which is of non-class type 'const int'
Point3D<T> p = det(u.a - u.b, v.a - v.b);
^
0_0_33307385_32020.cpp:240:41: error: request for member 'b' in 'v', which is of non-class type 'const int'
Point3D<T> p = det(u.a - u.b, v.a - v.b);
^
0_0_33307385_32020.cpp:241:26: error: request for member 'a' in 'u', which is of non-class type 'const int'
return std::fabs(dot(u.a - v.a, p)) / p.norm();
^
0_0_33307385_32020.cpp:241:32: error: request for member 'a' in 'v', which is of non-class type 'const int'
return std::fabs(dot(u.a - v.a, p)) / p.norm();
^
0_0_33307385_32020.cpp: At global scope:
0_0_33307385_32020.cpp:245:36: error: template argument 2 is invalid
Point3D<T> intersect(const Line3D<T>& u, const Line3D<T>& v) {
^
0_0_33307385_32020.cpp:245:56: error: template argument 2 is invalid
Point3D<T> intersect(const Line3D<T>& u, const Line3D<T>& v) {
^
0_0_33307385_32020.cpp: In function 'Point3D<T> intersect(const int&, const int&)':
0_0_33307385_32020.cpp:246:25: error: request for member 'a' in 'u', which is of non-class type 'const int'
Point3D<T> v1 = det(u.a - v.a, v.b - v.a);
^
0_0_33307385_32020.cpp:246:31: error: request for member 'a' in 'v', which is of non-class type 'const int'
Point3D<T> v1 = det(u.a - v.a, v.b - v.a);
^
0_0_33307385_32020.cpp:246:36: error: request for member 'b' in 'v', which is of non-class type 'const int'
Point3D<T> v1 = det(u.a - v.a, v.b - v.a);
^
0_0_33307385_32020.cpp:246:42: error: request for member 'a' in 'v', which is of non-class type 'const int'
Point3D<T> v1 = det(u.a - v.a, v.b - v.a);
^
0_0_33307385_32020.cpp:247:25: error: request for member 'b' in 'u', which is of non-class type 'const int'
Point3D<T> v2 = det(u.b - u.a, v.b - v.a);
^
0_0_33307385_32020.cpp:247:31: error: request for member 'a' in 'u', which is of non-class type 'const int'
Point3D<T> v2 = det(u.b - u.a, v.b - v.a);
^
0_0_33307385_32020.cpp:247:36: error: request for member 'b' in 'v', which is of non-class type 'const int'
Point3D<T> v2 = det(u.b - u.a, v.b - v.a);
^
0_0_33307385_32020.cpp:247:42: error: request for member 'a' in 'v', which is of non-class type 'const int'
Point3D<T> v2 = det(u.b - u.a, v.b - v.a);
^
0_0_33307385_32020.cpp:249:13: error: request for member 'b' in 'u', which is of non-class type 'const int'
return (u.b - u.a) * t + u.a;
^
0_0_33307385_32020.cpp:249:19: error: request for member 'a' in 'u', which is of non-class type 'const int'
return (u.b - u.a) * t + u.a;
^
0_0_33307385_32020.cpp:249:30: error: request for member 'a' in 'u', which is of non-class type 'const int'
return (u.b - u.a) * t + u.a;
^
0_0_33307385_32020.cpp: At global scope:
0_0_33307385_32020.cpp:254:32: error: template argument 2 is invalid
bool is_parallel(const Line3D<T>& u, const Line3D<T>& v) {
^
0_0_33307385_32020.cpp:254:52: error: template argument 2 is invalid
bool is_parallel(const Line3D<T>& u, const Line3D<T>& v) {
^
0_0_33307385_32020.cpp: In function 'bool is_parallel(const int&, const int&)':
0_0_33307385_32020.cpp:255:21: error: request for member 'b' in 'u', which is of non-class type 'const int'
return sign(det(u.b - u.a, v.b - v.a).norm()) == 0;
^
0_0_33307385_32020.cpp:255:27: error: request for member 'a' in 'u', which is of non-class type 'const int'
return sign(det(u.b - u.a, v.b - v.a).norm()) == 0;
^
0_0_33307385_32020.cpp:255:32: error: request for member 'b' in 'v', which is of non-class type 'const int'
return sign(det(u.b - u.a, v.b - v.a).norm()) == 0;
^
0_0_33307385_32020.cpp:255:38: error: request for member 'a' in 'v', which is of non-class type 'const int'
return sign(det(u.b - u.a, v.b - v.a).norm()) == 0;
^
0_0_33307385_32020.cpp: At global scope:
0_0_33307385_32020.cpp:260:32: error: template argument 2 is invalid
bool is_vertical(const Line3D<T>& u, const Line3D<T>& v) {
^
0_0_33307385_32020.cpp:260:52: error: template argument 2 is invalid
bool is_vertical(const Line3D<T>& u, const Line3D<T>& v) {
^
0_0_33307385_32020.cpp: In function 'bool is_vertical(const int&, const int&)':
0_0_33307385_32020.cpp:261:21: error: request for member 'b' in 'u', which is of non-class type 'const int'
return sign(dot(u.b - u.a, v.b - v.a)) == 0;
^
0_0_33307385_32020.cpp:261:27: error: request for member 'a' in 'u', which is of non-class type 'const int'
return sign(dot(u.b - u.a, v.b - v.a)) == 0;
^
0_0_33307385_32020.cpp:261:32: error: request for member 'b' in 'v', which is of non-class type 'const int'
return sign(dot(u.b - u.a, v.b - v.a)) == 0;
^
0_0_33307385_32020.cpp:261:38: error: request for member 'a' in 'v', which is of non-class type 'const int'
return sign(dot(u.b - u.a, v.b - v.a)) == 0;
^
0_0_33307385_32020.cpp: At global scope:
0_0_33307385_32020.cpp:267:19: error: template argument 2 is invalid
const Line3D<T>& l, const Point3D<T>& p1, const Point3D<T>& p2) {
^
0_0_33307385_32020.cpp: In function 'bool is_on_same_side(const int&, const Point3D<T>&, const Point3D<T>&)':
0_0_33307385_32020.cpp:268:25: error: request for member 'a' in 'l', which is of non-class type 'const int'
return sign(dot(det(l.a - l.b, p1 - l.b), det(l.a - l.b, p2 - l.b))) > 0;
^
0_0_33307385_32020.cpp:268:31: error: request for member 'b' in 'l', which is of non-class type 'const int'
return sign(dot(det(l.a - l.b, p1 - l.b), det(l.a - l.b, p2 - l.b))) > 0;
^
0_0_33307385_32020.cpp:268:41: error: request for member 'b' in 'l', which is of non-class type 'const int'
return sign(dot(det(l.a - l.b, p1 - l.b), det(l.a - l.b, p2 - l.b))) > 0;
^
0_0_33307385_32020.cpp:268:51: error: request for member 'a' in 'l', which is of non-class type 'const int'
return sign(dot(det(l.a - l.b, p1 - l.b), det(l.a - l.b, p2 - l.b))) > 0;
^
0_0_33307385_32
|