Skip to content

Commit 8b830b5

Browse files
committed
[Lib] Add missing files
1 parent 4d62124 commit 8b830b5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

libs/librrgraph/src/base/rr_node.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#include "rr_node.h"
2+
#include "rr_graph_storage.h"
3+
4+
//Returns the max 'length' over the x or y direction
5+
short t_rr_node::length() const {
6+
return std::max(
7+
storage_->node_yhigh(id_) - storage_->node_ylow(id_),
8+
storage_->node_xhigh(id_) - storage_->node_xlow(id_));
9+
}
10+
11+

0 commit comments

Comments
 (0)