02-03-2021, 05:23 AM
So the other essential that I need for this is a function to return a direction of movement based on a from-to pair.
eg (direction [Vertex|Cell|Edge] from:<> to:<>)
that can be used in a move such as (push (from (site)) (direction Vertex from:(last From) to:(last To)))
or (hop ... ) or (slide...) to specify the direction chosen.
Does "SameDirection" do this based on lastFrom and lastTo, or does there need to be an actual move performed or direction specified in advance?
Also SameDirection wouldn't work here anyway as it wouldn't be able to detect that the direction to be used for the cell movements was derived from vertices.
eg (direction [Vertex|Cell|Edge] from:<> to:<>)
that can be used in a move such as (push (from (site)) (direction Vertex from:(last From) to:(last To)))
or (hop ... ) or (slide...) to specify the direction chosen.
Does "SameDirection" do this based on lastFrom and lastTo, or does there need to be an actual move performed or direction specified in advance?
Also SameDirection wouldn't work here anyway as it wouldn't be able to detect that the direction to be used for the cell movements was derived from vertices.