11 virtual double sum()
const = 0;
19 explicit Point2(
double x,
double y = 10.0) : x_{x}, y_{
y} {}
20 double x()
const {
return x_; }
21 double y()
const {
return y_; }
22 double sum()
const override;
26 void print(
const std::string&
s)
const { std::cout << s << std::endl; }
37 double x()
const {
return x_; }
40 double y()
const {
return y_; }
41 double z()
const {
return z_; }
42 double sum()
const override;
48 template <
class POINT>
54 double overload()
const {
return point_.sum() + point_.x(); }
56 return point_.sum() + point.sum();
59 return point_.sum() + other.
overload();
62 POINT
point()
const {
return point_; }
72 template <
typename OTHER_POINT>
74 return point_.x() + other.x();
81 template <
class T1,
class T2>
86 double sum_x()
const {
return t1_.x() + t2_.x(); }
89 return t1_.x() + t2_.x() + other1.x();
92 double sum_x(
const std::shared_ptr<T2>& other2)
const {
93 return t1_.x() + t2_.x() + other2->x();
96 double sum_x(
const T1& other1,
const std::shared_ptr<T2>& other2)
const {
97 return t1_.x() + t2_.x() + other1.x() + other2->x();
117 :
p(p_in),
z(z_in),
w(w_in) {}
Template< POINT > method_on_this(const POINT &point) const
Template2(const T1 &t1, const T2 &t2)
virtual double sum() const =0
static const Pose3 T2(Rot3::Rodrigues(0.3, 0.2, 0.1), P2)
POINT method_on_template_type(const POINT &point) const
double global_func_on_base(const std::shared_ptr< PointBase > &point)
double overload(const POINT &point) const
double global_func_overloads(const std::shared_ptr< anzu::sub::Point2 > &point2)
Point3(double x, double y, double z)
Template(const Template< POINT > &other)
double x(double to_add) const
Template(const POINT &point, double a=10)
static const Point3 point3(0.08, 0.08, 0.0)
static const Point3 point2(-0.08, 0.08, 0.0)
void print(const std::string &s) const
double template_method(const OTHER_POINT &other) const
Point4(const sub::Point2 &p_in, double z_in, double w_in)
EIGEN_DONT_INLINE T sub(T a, T b)
static const Similarity3 T1(R, Point3(3.5, -8.2, 4.2), 1)
const anzu::sub::Point2 p
double sum_x(const std::shared_ptr< T2 > &other2) const
double func_with_default_args(double a, double b=20.0) const
double sum_x(const T1 &other1, const std::shared_ptr< T2 > &other2) const
Point2(double x, double y=10.0)
double sum_x(const T1 &other1) const
set noclip points set clip one set noclip two set bar set border lt lw set xdata set ydata set zdata set x2data set y2data set boxwidth set dummy x
double overload(const Template< POINT > &other) const
static Template< POINT > static_method(const Template< POINT > &other, double dummy)