This commit is contained in:
numzero 2024-05-05 14:43:07 +03:00
parent 1d19ad7968
commit 363ee4914b

View File

@ -31,7 +31,7 @@ fn draw_ray(gc: &mut Vec<Draw>, space: &impl Metric, base: Vec2, dir: Vec2) {
for pt in trace_iter(space, base, dir, 1.0).take(10000) {
gc.line_to(pt.x, pt.y);
if pt.abs().cmpgt(Vec2::splat(1000.0)).any() {
break
break;
}
}
gc.stroke();
@ -233,7 +233,7 @@ mod riemann {
fn convolute(t: Tens2, v: Vec2) -> Vec2 {
vec2(
v.dot(t[0] * v),
v.dot(t[1] * v)
v.dot(t[1] * v),
)
}