2D computer graphics endowed with a self-rendering method—a procedure which assigns colors to the image pixels by an arbitrary algorithm. Complex models can be built by combining simpler objects, in the paradigms of object-oriented programming. In Euclidean geometry, a translation moves every point a constant distance in a specified direction. A translation can be described as a rigid motion: other rigid motions include rotations and reflections. A translation can also be interpreted as the addition of a constant vector to every point, or as shifting the origin of the coordinate system. A translation operator is an operator formula_1 such that formula_2 If v
Distance from a point to a line formula_19, and formula_20in terms of the coordinates of P and the coefficients of the equation of the line to get the indicated formula. Let "P" be the point with coordinates ("x", "y") and let the given line have equation "ax" + "by" + "c" = 0. Also, let "Q" = ("x", "y") be any point on this line and n the vector ("a", "b") starting at point "Q". The vector n is perpendicular to the line, and the distance "d" from point "P" to the line is equal to the length of the orthogonal projection of formula_21 on n. The