Be kind to the optimizer, pass coordinates by value (just two ints)
This commit is contained in:
committed by
Patrick Niklaus
parent
46fc6f8da4
commit
d391df52ba
@@ -58,8 +58,8 @@ struct EdgeBasedNode
|
||||
(reverse_edge_based_node_id != SPECIAL_NODEID));
|
||||
}
|
||||
|
||||
static inline util::FixedPointCoordinate Centroid(const util::FixedPointCoordinate &a,
|
||||
const util::FixedPointCoordinate &b)
|
||||
static inline util::FixedPointCoordinate Centroid(const util::FixedPointCoordinate a,
|
||||
const util::FixedPointCoordinate b)
|
||||
{
|
||||
util::FixedPointCoordinate centroid;
|
||||
// The coordinates of the midpoint are given by:
|
||||
|
||||
Reference in New Issue
Block a user