Fix small bug in Twist
This commit is contained in:
parent
111933c30e
commit
2c9a273540
@ -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.
|
||||||
|
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user