Convert local vector into the the other node coordinate system. The `node` must be somewhere in the hierarchy tree. Parameters ---------- point : tuple of float Cartesian vector `(i, j, k)` in the local coordinate system. nod
(self, vector: tuple, node: Node)
| 79 | return new_pt |
| 80 | |
| 81 | def vector_to_node(self, vector: tuple, node: Node) -> tuple: |
| 82 | """ Convert local vector into the the other node coordinate system. |
| 83 | |
| 84 | The `node` must be somewhere in the hierarchy tree. |
| 85 | |
| 86 | Parameters |
| 87 | ---------- |
| 88 | point : tuple of float |
| 89 | Cartesian vector `(i, j, k)` in the local coordinate system. |
| 90 | node : Node |
| 91 | Node in which the point should be represented. |
| 92 | """ |
| 93 | mat = self.transformation_to(node)[0:3, 0:3] |
| 94 | new_vec = tuple(np.dot(mat, np.array(tuple(vector)))[0:3]) |
| 95 | return new_vec |
| 96 | |
| 97 | def path_to(self, node) -> Sequence[Node]: |
| 98 | upwards, common, downwards = Walker().walk(self, node) |