Finding all the points whose distance from a given line equals 1

3dgeometrylinear algebravectors

I have a line in the vector form:
$(x,y,z) = t(1,1,1) + (0,0,1)$
and I need to find a vector that represents all the points whose distance from this line equals $1$.
I started calculating the distance between a point $(a,b,c)$ and this line using the vetorial product… and I got a big equation in terms of $a$, $b$ and $c$. I think this equation describes a cylinder whose centerline is $(x,y,z) = t(1,1,1) + (0,0,1)$.
But I don't know how to get rid of this equation and obtain the vector…

Can anyone help me?
Thank you

Best Answer

Actually, there are infinitely many points as 1 unit far from the line. For those points, namely having coordinates $(p,q,r)$, there exists a unit vector $(a,b,c)$ normal to the vector of line $(1,1,1)$ and a point $(x,y,z)$ on the line such that $$ (p,q,r)=(x,y,z)+(a,b,c). $$ The unicity of $(a,b,c)$, along its normality implies $$ {a^2+b^2+c^2=1 \\ (a,b,c)\cdot(1,1,1)=a+b+c=0, } $$ which yields $$ {c=-a-b \\ a^2+b^2+ab=\frac{1}{2}\implies \\ b=\frac{-a\pm\sqrt{2-3a^2}}{2} \\ c=\frac{-a\mp\sqrt{2-3a^2}}{2}. } $$Since the point $(x,y,z)$ is arbitrary, the equation of all points far from the line as much as 1 is $$ \left(t+a,t+\frac{-a\pm\sqrt{2-3a^2}}{2},1+t+\frac{-a\mp\sqrt{2-3a^2}}{2}\right) $$ for $|a|\le \sqrt\frac{2}{3}$.