Extract the Fractal Tree Matrix from a Tree Data Frame
get_tree_matrix(tree_df)A matrix of unique coordinates (x, y) representing the positions of the tree's segments.
A data frame containing the tree data, typically resulting from the build_tree function. The data frame should include columns from_x, from_y, to_x, and to_y, which represent the coordinates of the tree segments.
This function extracts the start and end coordinates of the tree segments and returns the result as a matrix.