# UGCNET-Dec2015-III: 32

1.9k views

The end points of a given line are $(0,0)$ and $(6,18)$. Compute each value of y as x steps from $0$ to $3$, by using equation of straight line:

1. For $x=0, y=0; x=1, y=3; x=2, y=6; x=3, y=9$
2. For $x=0, y=1; x=1, y=3; x=2, y=4; x=3, y=9$
3. For $x=0, y=2; x=1, y=3; x=2, y=6; x=3, y=9$
4. For $x=0, y=0; x=1, y=3; x=2, y=4; x=3, y=6$
in Geometry
edited

A is the ans

eqn of line passing through 2 points (x1,y1) ,(x2,y2) is y-y1=(y2-y1)*(x-x1)/(x2-x1)

so here eqn of line is y-0=(18-0)(x-0)/(6-0) =>y=3x

so when x=0 y=0

x=1 y=3

x=2  y=6

x=3   y=9

hence ans is A

selected
0

If this is the equation of line then what about y = mx+c.

Because, Equations of straight lines are in the form y = mx + c

0
Since x=0 => y=0

this means the line is passing through origin.

At origin the intercept c =0

so here it is y= mx.

## Related questions

1
799 views
Consider a triangle represented by $A(0, 0), B(1, 1), C(5, 2)$. The triangle is rotated by $45$ degrees about a point $P(-1, -1)$ ... $A'(-1, \sqrt{2}-1), B'(2\sqrt{2}-1, -1), C'\left(\frac{9}{2}\sqrt{2}-1, \frac{3}{2}\sqrt{2}-1\right)$
Consider a unit square centered at origin. The coordinates at the square are translated by a factor $\biggr( \dfrac{1}{2}, 1 \biggl)$ and rotated by an angle of $90^{\circ}$ ...
Which raster locations would be chosen by Bresenham's algorithm when scan converting a line from $(1,1)$ to $(8,5)$? $\begin{array}{|c|c|} \hline x & y \\ \hline 1 & 1 \\ 2 & 2 \\ 3 & 3 \\ 4 & 3 \\ 5 & 4 \\ 6 & 4 \\ 7 & 5 \\ 8 & 6 \\ \hline \end{array}$ ...