Describe the bug
i'm trying to draw rays (green circles is rays origin)
such as:
let p0 = ...;
let p1 = p0 + r * 1e2;
root.draw(&PathElement::new(
vec![(p0[0], p0[1]), (p1[0], p1[1])],
...,
))
.unwrap();
where r is normalized ray direction.
if ray len ( r 1e2 ) is big enough rays goes incorrect. all rays must approx cross point 64
with r 1e1 result is:
with r*2e0 result is:
with big (r*1e2 and more) ray len rays treng to go into image corners:
check math:
let d = 1e2;
let p1 = p0 + r * d;
println!("p0: {} p1: {} r: {} d: {}", p0, p1, r, d);
Describe the bug i'm trying to draw rays (green circles is rays origin) such as:
where r is normalized ray direction. if ray len ( r 1e2 ) is big enough rays goes incorrect. all rays must approx cross point 64 with r 1e1 result is: with r*2e0 result is:
with big (r*1e2 and more) ray len rays treng to go into image corners:
check math:
init plotters as:
straightforward mapping don't works too.
Version Information plotters = {version="0.3.5", features = ["ttf", "all_series"] }