Template
LinesOverlay Test
From Dogcraft Wiki
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
{{#invoke: String | {{#invoke: String | ||
|rep | |rep | ||
|<div class{{=}}"line" style{{=}}"--x1: {{#explode:{{#explode:{{{line1|}}}| |0}}|,|0}}; --z1: {{#explode:{{#explode:{{{line1|}}}| |0}}|,|1}}; --x2: {{#explode:{{#explode:{{{line1|}}}| |1}}|,|0}}; --z2: {{#explode:{{#explode:{{{line1|}}}| |1}}|,|1}}; transform: rotate( | |<div class{{=}}"line" style{{=}}" | ||
--x1: {{#explode:{{#explode:{{{line1|}}}| |0}}|,|0}}; | |||
--z1: {{#explode:{{#explode:{{{line1|}}}| |0}}|,|1}}; | |||
--x2: {{#explode:{{#explode:{{{line1|}}}| |1}}|,|0}}; | |||
--z2: {{#explode:{{#explode:{{{line1|}}}| |1}}|,|1}}; | |||
transform: rotate( calc( {{#expr: (atan (({{#explode:{{#explode:{{{line1|}}}| |0}}|,|0}} - {{#explode:{{#explode:{{{line1|}}}| |1}}|,|0}}) / ({{#explode:{{#explode:{{{line1|}}}| |1}}|,|1}} - {{#explode:{{#explode:{{{line1|}}}| |0}}|,|1}} + 0.00000001) )) }}rad {{#ifexpr: ({{#explode:{{#explode:{{{line1|}}}| |1}}|,|1}} - {{#explode:{{#explode:{{{line1|}}}| |0}}|,|1}}) < 0 | + 180deg }} )); | |||
height: {{#expr: sqrt ((({{#explode:{{#explode:{{{line1|}}}| |1}}|,|0}} - {{#explode:{{#explode:{{{line1|}}}| |0}}|,|0}}) ^ 2) + (({{#explode:{{#explode:{{{line1|}}}| |1}}|,|1}} - {{#explode:{{#explode:{{{line1|}}}| |0}}|,|1}}) ^ 2 ) ) }}px;"></div> | |||
|{{#invoke:String|count|{{{line1|}}}|,}} | |{{#invoke:String|count|{{{line1|}}}|,}} | ||
}} | }} | ||
</div> | </div> | ||
Test:{{#expr: 10 ^ 0.5}} | |||
</includeonly> | </includeonly> |
Revision as of 18:09, 17 March 2024
Test:3.1622776601684
This page was last modified on 17 March 2024, at 18:09. (7 months ago)