Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i have three line segments x,y,z of some three lengths, where the whole thing (x+y+z) is a constant v. now there's a variable t where t/v goes from 0 to 1 (i.e the line grows from 0 to v) in such a way that there are three other variables a,b,c that start as 0,0,0 and a/x goes from 0 to 1 then b/y goes from 0 to 1 and then c/z goes from 0 to 1 (i.e each line segment is filled in succession), and a/x + b/y + c/z will reach 3 at the time where t/v reaches 1 (i.e the whole line is filled). i need an algorithm to figure out a general result r where r=a/x then r=b/y then r=c/z (each goes from 0 to 1 then moves on to the next) so that these conditions are fulfilled.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement