27 lines
1.5 KiB
XML
27 lines
1.5 KiB
XML
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
|
|
<defs>
|
|
<marker id="ref-arr" markerWidth="7" markerHeight="5" refX="7" refY="2.5" orient="auto">
|
|
<path d="M0,0 L7,2.5 L0,5" fill="#999"/>
|
|
</marker>
|
|
<marker id="ref-r" markerWidth="7" markerHeight="5" refX="7" refY="2.5" orient="auto">
|
|
<path d="M0,0 L7,2.5 L0,5" fill="#e74c3c"/>
|
|
</marker>
|
|
<marker id="ref-b" markerWidth="7" markerHeight="5" refX="7" refY="2.5" orient="auto">
|
|
<path d="M0,0 L7,2.5 L0,5" fill="#3498db"/>
|
|
</marker>
|
|
</defs>
|
|
<!-- axes -->
|
|
<line x1="100" y1="190" x2="100" y2="10" stroke="#ccc" stroke-width="1" marker-end="url(#ref-arr)"/>
|
|
<line x1="10" y1="100" x2="190" y2="100" stroke="#ccc" stroke-width="1" marker-end="url(#ref-arr)"/>
|
|
<!-- x-axis label (mirror line) -->
|
|
<text x="185" y="93" fill="#666" font-size="10">x</text>
|
|
<!-- original vector (upper right) -->
|
|
<line x1="100" y1="100" x2="165" y2="40" stroke="#e74c3c" stroke-width="2.5" marker-end="url(#ref-r)"/>
|
|
<text x="160" y="35" fill="#e74c3c" font-size="11">v</text>
|
|
<!-- reflected vector (lower right, across x-axis) -->
|
|
<line x1="100" y1="100" x2="165" y2="160" stroke="#3498db" stroke-width="2.5" marker-end="url(#ref-b)"/>
|
|
<text x="160" y="172" fill="#3498db" font-size="11">Ref v</text>
|
|
<!-- dashed connection -->
|
|
<line x1="165" y1="40" x2="165" y2="160" stroke="#999" stroke-width="1" stroke-dasharray="4"/>
|
|
<text x="100" y="195" text-anchor="middle" fill="#333" font-size="11">reflection across x-axis</text>
|
|
</svg> |