# Line function takes wrong input

felipelorenzzon shared this problem 9 months ago
Not a Problem

It should take a point and a vector to know the direction of a line, just as in Line((0, 0, 1), (-1, 2, 5)) and output (0,0,1) + lambda (-1,2,5), but it seems to subtract the point from the vector, an incorrect operation. The resulting line is actually displayed correctly and you can intentionally add your point to the vector to counteract this problem, but this is not a solution. Hope you can solve this, geogebra is amazing 1 1  2

Line((0, 0, 1), (-1, 2, 5)) is line trough two points

try Line((0, 0, 1),vector( (-1, 2, 5))) 1

Thanks, there was no indication that I needed to type in vector first. Worked now. 1

Only typing coordinates always is interpreted as a point. So you've got two choices: first option: type vector in the command, second option is first define u= (-1,2,5) (small letters automatically will make a vector out of it) and then type u in the command instead of the coordinates: Line((0, 0, 1),u) 