x and y defining the x and y
translation
If y is not provided, it is assumed to be zero.
transform = "translate(x [y])"
The translation is an elementary displacement transformation.
Explanation
The new user coordinate system has
its origin at location (100,100) in the original coordinate
system.
The result of this transformation
is that the coordinate (50,50) of the top-left point
of the rectangle in the new user coordinate system
gets mapped to coordinate (150,150) in the original
coordinate system (i.e., the coordinates have been
translated by 100 units in X and 100 units in Y).
Code Example
SVG Image
<?xml version="1.0"
standalone="no"?>
Right-click
on the image to open the SVG viewer pop-up menu.
Click 'view SVG' to display the image in a new, full
window to zoom & pan the image.
(SVG Viewer Tips)
<!DOCTYPE svg PUBLIC "-//W3C//DTD
SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
width="500" height="500">
<!--
Draw the axes of the original coordinate system &
the text -->
<g fill="none"
stroke="blue" stroke-width="3"
>
<line x1="0" y1="1.5" x2="150"
y2="1.5" />
<line x1="1.5" y1="0" x2="1.5"
y2="150" />
</g>