src
fields2cover
objectives
rp_obj
direct_dist_path_obj.cpp
Go to the documentation of this file.
1
//=============================================================================
2
// Copyright (C) 2021-2024 Wageningen University - All Rights Reserved
3
// Author: Gonzalo Mier
4
// BSD-3 License
5
//=============================================================================
6
7
#include "
fields2cover/objectives/rp_obj/direct_dist_path_obj.h
"
8
9
namespace
f2c::obj
{
10
11
double
DirectDistPathObj::computeCost
(
12
const
F2CPoint
&
p1
,
const
F2CPoint
&
p2
) {
13
return
p1
.distance(
p2
);
14
}
15
16
}
// namespace f2c::obj
17
1_basic_types.p1
p1
Definition:
1_basic_types.py:11
f2c::obj
Objective algorithms' namespace.
Definition:
base_objective.h:14
1_basic_types.p2
p2
Definition:
1_basic_types.py:15
f2c::types::Point
Definition:
Point.h:21
direct_dist_path_obj.h
f2c::obj::DirectDistPathObj::computeCost
double computeCost(const F2CPoint &p1, const F2CPoint &p2) override
Definition:
direct_dist_path_obj.cpp:11
fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31