# Straight Line Components

Line or the straight line can be used to represent basic Position of an object such as height, width and length of an object. When an object is placed in two dimensional space then Straight Line is used to measure height and length of this object. When an object is placed in three dimensional space then its height, length and the width are calculated using straight line.

If we talk about line in Geometry coordinate system then we represent line by equation y = mx + c. This linear equation defines straight line in the Cartesian plane. Here the components of the straight line are the coordinates (x, y), slope 'm' and y- intercept 'c'. These are three components which are used in straight line equation.

Straight line equation in two dimensional space can be written as,
y = mx + c
where,
'x' is the independent variable which can be represented by the function y = f(x).
'c' is the Point of y- intercept of straight line.
'm' is the Slope of line.
m = $\frac{change\ in\ y-coordinates}{change\ in\ x-coordinates}$

Straight line equation in three dimensional can be written as,
X = x + ap
Y = y + bp
Z = z + cp
Here x, y and z are components of line. They are Functions of the independent variable 'p'.