Difference between revisions of "Dimensions"

From Sega Retro

(damn radians)
Line 5: Line 5:
 
#vardefine:movex|{{#expr:{{#var:newdepth}} * cos(45*0.0174533)}}}}{{
 
#vardefine:movex|{{#expr:{{#var:newdepth}} * cos(45*0.0174533)}}}}{{
 
#vardefine:movey|{{#expr:{{#var:newdepth}} * sin(45*0.0174533)}}}}<div style="border:1px solid #F00; max-width:{{{diagramsize|200}}}px; min-width:{{{diagramsize|200}}}px; max-height:{{{diagramsize|200}}}px; min-height:{{{diagramsize|200}}}px;">{{
 
#vardefine:movey|{{#expr:{{#var:newdepth}} * sin(45*0.0174533)}}}}<div style="border:1px solid #F00; max-width:{{{diagramsize|200}}}px; min-width:{{{diagramsize|200}}}px; max-height:{{{diagramsize|200}}}px; min-height:{{{diagramsize|200}}}px;">{{
DrawLine|colour=#009|x1=0|y1={{{diagramsize|200}}}|w={{#var:newheight}}|angle=90}}{{
+
DrawLine|colour=#000|x1=0|y1={{{diagramsize|200}}}|w={{#var:newheight}}|angle=90}}{{
DrawLine|colour=#009|x1={{#var:newwidth}}|y1={{{diagramsize|200}}}|w={{#var:newheight}}|angle=90}}{{
+
DrawLine|colour=#000|x1={{#var:newwidth}}|y1={{{diagramsize|200}}}|w={{#var:newheight}}|angle=90}}{{
DrawLine|colour=#009|x1=0|y1={{{diagramsize|200}}}|w={{#var:newwidth}}}}{{
+
DrawLine|colour=#000|x1=0|y1={{{diagramsize|200}}}|w={{#var:newwidth}}}}{{
DrawLine|colour=#009|x1=0|y1={{#expr:{{{diagramsize|200}}}-{{#var:newheight}}}}|w={{#var:newwidth}}}}{{
+
DrawLine|colour=#000|x1=0|y1={{#expr:{{{diagramsize|200}}}-{{#var:newheight}}}}|w={{#var:newwidth}}}}{{
  
DrawLine|colour=#090|x1={{#var:movex}}|y1={{#expr:{{{diagramsize|200}}}-{{#var:movey}}}}|w={{#var:newheight}}|angle=90|dashed=yes}}{{
+
DrawLine|colour=#999|x1={{#var:movex}}|y1={{#expr:{{{diagramsize|200}}}-{{#var:movey}}}}|w={{#var:newheight}}|angle=90|dashed=yes}}{{
DrawLine|colour=#090|x1={{#expr:{{#var:movex}} + {{#var:newwidth}}}}|y1={{#expr:{{{diagramsize|200}}}-{{#var:movey}}}}|w={{#var:newheight}}|angle=90}}{{
+
DrawLine|colour=#000|x1={{#expr:{{#var:movex}} + {{#var:newwidth}}}}|y1={{#expr:{{{diagramsize|200}}}-{{#var:movey}}}}|w={{#var:newheight}}|angle=90}}{{
DrawLine|colour=#090|x1={{#var:movex}}|y1={{#expr:{{{diagramsize|200}}}-{{#var:movey}}}}|w={{#var:newwidth}}|dashed=yes}}{{
+
DrawLine|colour=#999|x1={{#var:movex}}|y1={{#expr:{{{diagramsize|200}}}-{{#var:movey}}}}|w={{#var:newwidth}}|dashed=yes}}{{
DrawLine|colour=#090|x1={{#var:movex}}|y1={{#expr:{{{diagramsize|200}}}-{{#var:newheight}}-{{#var:movey}}}}|w={{#var:newwidth}}}}{{
+
DrawLine|colour=#000|x1={{#var:movex}}|y1={{#expr:{{{diagramsize|200}}}-{{#var:newheight}}-{{#var:movey}}}}|w={{#var:newwidth}}}}{{
  
DrawLine|colour=#909|x1={{#var:newwidth}}|y1={{{diagramsize|200}}}|w={{#var:newdepth}}|angle=45}}{{
+
DrawLine|colour=#000|x1={{#var:newwidth}}|y1={{{diagramsize|200}}}|w={{#var:newdepth}}|angle=45}}{{
DrawLine|colour=#909|x1={{#var:newwidth}}|y1={{#expr:{{{diagramsize|200}}}-{{#var:newheight}}}}|w={{#var:newdepth}}|angle=45}}{{
+
DrawLine|colour=#000|x1={{#var:newwidth}}|y1={{#expr:{{{diagramsize|200}}}-{{#var:newheight}}}}|w={{#var:newdepth}}|angle=45}}{{
DrawLine|colour=#909|x1=0|y1={{{diagramsize|200}}}|w={{#var:newdepth}}|angle=45|dashed=yes}}{{
+
DrawLine|colour=#999|x1=0|y1={{{diagramsize|200}}}|w={{#var:newdepth}}|angle=45|dashed=yes}}{{
DrawLine|colour=#909|x1=0|y1={{#expr:{{{diagramsize|200}}}-{{#var:newheight}}}}|w={{#var:newdepth}}|angle=45}}
+
DrawLine|colour=#000|x1=0|y1={{#expr:{{{diagramsize|200}}}-{{#var:newheight}}}}|w={{#var:newdepth}}|angle=45}}{{
</div>
 
*{{{1|}}} -> {{#var:newwidth}}
 
*{{{2|}}} -> {{#var:newheight}}
 
*{{{3|}}} -> {{#var:newdepth}}
 
  
 +
DrawLine|colour=#999|x1=-10|y1={{{diagramsize|200}}}|w={{#var:newheight}}|angle=90}}{{
 +
DrawLine|colour=#999|x1=0|y1={{#expr:{{{diagramsize|200}}} + 10}}|w={{#var:newwidth}}}}{{
 +
DrawLine|colour=#999|x1={{#expr:{{#var:newwidth}} + 10}}|y1={{#expr:{{{diagramsize|200}}} + 10}}|w={{#var:newdepth}}|angle=45}}</div>
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>

Revision as of 14:45, 20 June 2018