Skip to main content

rotation

Function rotation 

Source
pub fn rotation(theta: f64) -> CMat
Expand description

Coin R(θ) = [[cos θ, −sin θ], [sin θ, cos θ]] on the two colors of a node.

The motion leaves the walker on the edge it came along, so on a ring the coin angle θ sets what it does next: it turns back with amplitude cos θ and goes on with amplitude sin θ. At θ = 0 the walker bounces on one edge forever, at θ = π/2 it runs around the ring.