Difference between revisions of "Dimensions"

From Sega Retro

(I used to be good at this)
(damn radians)
Line 3: Line 3:
 
#vardefine:newheight|{{#expr:({{{2|}}}/{{#var:highest}})*{{{diagramsize|200}}}}}}}{{
 
#vardefine:newheight|{{#expr:({{{2|}}}/{{#var:highest}})*{{{diagramsize|200}}}}}}}{{
 
#vardefine:newdepth|{{#expr:(({{{3|}}}/{{#var:highest}})*{{{diagramsize|200}}})/2}}}}{{
 
#vardefine:newdepth|{{#expr:(({{{3|}}}/{{#var:highest}})*{{{diagramsize|200}}})/2}}}}{{
#vardefine:movex|{{#expr:{{#var:newdepth}} * cos(45)}}}}{{
+
#vardefine:movex|{{#expr:{{#var:newdepth}} * cos(45*0.0174533)}}}}{{
#vardefine:movey|{{#expr:{{#var:newdepth}} * sin(45)}}}}<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=#009|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=#009|x1={{#var:newwidth}}|y1={{{diagramsize|200}}}|w={{#var:newheight}}|angle=90}}{{
Line 23: Line 23:
 
*{{{2|}}} -> {{#var:newheight}}
 
*{{{2|}}} -> {{#var:newheight}}
 
*{{{3|}}} -> {{#var:newdepth}}
 
*{{{3|}}} -> {{#var:newdepth}}
 +
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>

Revision as of 14:22, 20 June 2018


  • 20 -> 66.666666666667
  • 30 -> 100
  • 60 -> 100


  • 60 -> 200
  • 30 -> 100
  • 20 -> 33.333333333333


  • 20 -> 66.666666666667
  • 60 -> 200
  • 30 -> 50