mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-10 14:57:14 +00:00
Fix typo in test/bench/noise.rs. Closes #8574.
This commit is contained in:
parent
934a5eba50
commit
0f6e90a5fd
@ -25,7 +25,7 @@ fn random_gradient<R:Rng>(r: &mut R) -> Vec2 {
|
||||
|
||||
fn gradient(orig: Vec2, grad: Vec2, p: Vec2) -> f32 {
|
||||
let sp = Vec2 {x: p.x - orig.x, y: p.y - orig.y};
|
||||
grad.x * sp.x + grad.y + sp.y
|
||||
grad.x * sp.x + grad.y * sp.y
|
||||
}
|
||||
|
||||
struct Noise2DContext {
|
||||
|
Loading…
Reference in New Issue
Block a user