Translation (geometry) of the object. The translation vector formula_8 common to all points of the object describes a particular type of displacement of the object, usually called a "linear" displacement to distinguish it from displacements involving rotation, called "angular" displacements. When considering spacetime, a change of time coordinate is considered to be a translation. For example, the Galilean group and the Poincaré group include translations with respect to time. Translation (geometry) In Euclidean geometry, a translation is a geometric transformation that moves every point of a figure or a space by the same distance in a given direction. In Euclidean geometry a
Is-a has to know about every derivative classes of Shape class. Also, it should be changed whenever new subclass of Shape are created. In object-oriented design, many view the structure of this as anathema. Here is a more subtle example of violation of LSP: This works well but when it comes to Square class, which inherits Rectangle class, it violates LSP even though the is-a relationship holds between Rectangle and Square. Because square is rectangular. The following example overrides two functions, Setwidth and SetHeight, to fix the problem. But fixing the code implies that the design is faulty. The following example,