Karnage1993 said:
Hmm, I don't think we make line equations like that in my class. We do it in the form l(t) = p + tv, where p is one of the two points and v is the direction vector.
Finding the direction vectors for each, I get:
Let $$\vec v_1 = (0,2,0) - (1,0,0) = (-1,2,0)$$
$$\vec\gamma_1(t) = (1,0,0) + t(-1,2,0)$$
Okay, this goes from (0, 2, 0) to (1, 0, 0) as t goes from 0 to 1. If you were to replace t with 3s, getting \vec{\gamma(s)}= (1, 0, 0)+ 3s(-1, 2, 0= (1, 0, 0)+ s(-3, 6, 0), you have a vector function that goes from (0, 2, 0) to (1, 0, 0) as s goes from 0 to 1/3.
Let $$\vec v_2 = (0,0,3) - (0,2,0) = (0,-2,3)$$
$$\vec\gamma_2(t) = (0,2,0) + t(0,-2,3)$$
Okay, this goes from (0, 2, 0) to (0, 0, 3) as t goes from 0 to 1. Since we already have "from (0, 2, 0) to (1, 0, 0)", in order to be "moving" around the triangle, we would prefer to go
from (0, 0, 3) to (0, 2, 0). We could do that by replacing t with r= 1- t, with r from 0 to 2. But, further, because that will attach to the previous segment, we want it to end the chain- that is we want to have the parameter from 2/3 to 1. s will go from 2/3 to 1 as r goes from 0 to 2 if s= 2/3+ (1/3)r which is the same as r= 3(s- 2/3)= 3s- 2 . That means that we must have t= 1- (3s- 2)= 2- 3x. \vec{\gamma(s)}= (0, 2, 0)+ (2- 3s)(0, -2, 3)= (0, 0, 6)+ (0, 6s, 9s) for s from 2/3 to 1.
Let $$\vec v_3 = (1,0,0) - (0,0,3) = (1,0,-3)$$
$$\vec\gamma_3(t) = (0,0,3) + t(1,0,-3)$$
Okay, this goes from (1, 0, 0) to (0, 0, 3) as t goes from 0 to 1 and this side is the
middle of the chain. We want it to go from (1, 0, 0) to (0, 0, 3) as s goes from 1/3 to 2/3 so we want t= 3(s- 1/3)= 3s- 1. \vec{\gamma(s)}= (0, 0, 3)+ (3s-1)(1, 0, -3)= (-1, 0, 6)+ (3s, 0, -9s) for s from 1/3 to 2/3.
Now that I have line equations for each part of the triangle, what would I do to combine them to make ##\vec\gamma(t)##?
I you don't like piecewise defined functions, you can use the "Heaviside function", H(x) which is 0 for x< 0, 1 for x\ge 0. If F(x)= f(x) for x< a, g(x) for a\le x< b, and h(x) for b\le x, then you can write
F(x)= f(x)+ H(x- a)(g(x)- f(x))+ H(x- b)(h(x)- g(x)).