Fix small bug in Twist

This commit is contained in:
Chris Hodapp 2020-03-06 19:15:08 -05:00
parent 111933c30e
commit 2c9a273540
2 changed files with 1 additions and 2 deletions

View File

@ -2,7 +2,6 @@
## Highest priority: ## Highest priority:
- Clean up `twist` - maybe make a struct or trait.
- Do transforms compose in the *reverse* of automata_scratch? This - Do transforms compose in the *reverse* of automata_scratch? This
appears to be the case. appears to be the case.

View File

@ -323,7 +323,7 @@ impl Twist {
// Meant to be a copy of twist_from_gen from Python & automata_scratch // Meant to be a copy of twist_from_gen from Python & automata_scratch
pub fn start(&self) -> RuleEval<Twist> { pub fn start(&self) -> RuleEval<Twist> {
let n = self.seed.len(); let n = self.seed_sub.len();
// Quarter-turn in radians: // Quarter-turn in radians:
let qtr = std::f32::consts::FRAC_PI_2; let qtr = std::f32::consts::FRAC_PI_2;