mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 05:57:24 +01:00
1 line
4.0 KiB
HTML
1 line
4.0 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../"><link rel="stylesheet" href="dmdoc.css"><title>/datum/point_precise/vector - Space Station 13</title></head><body><header><a href="index.html">Space Station 13</a> - <a href="index.html#modules">Modules</a> - <a href="index.html#types">Types</a> — <a href="datum/point_precise/vector.html#var">Var Details</a> - <a href="datum/point_precise/vector.html#proc">Proc Details</a></header><main><h1>vector <aside>/<a href="datum.html">datum</a>/<a href="datum/point_precise.html">point_precise</a>/<a href="datum/point_precise/vector.html">vector</a></aside> <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/position_point_vector.dm#L129"><img src="git.png" width="16" height="16" title="code/datums/position_point_vector.dm 129"></a></h1><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="datum/point_precise/vector.html#var/mpx">mpx</a></th><td>Calculated x movement amounts to prevent having to do trig every step.</td></tr><tr><th><a href="datum/point_precise/vector.html#var/mpy">mpy</a></th><td>Calculated y movement amounts to prevent having to do trig every step.</td></tr><tr><th><a href="datum/point_precise/vector.html#var/speed">speed</a></th><td>Pixels per iteration</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/point_precise/vector.html#proc/set_angle">set_angle</a></th><td>Calculations use "byond angle" where north is 0 instead of 90, and south is 180 instead of 270.</td></tr><tr><th><a href="datum/point_precise/vector.html#proc/set_location">set_location</a></th><td>Same effect as initiliaze_location, but without setting the starting_x/y/z</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/mpx"><aside class="declaration">var </aside>mpx <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/position_point_vector.dm#L135"><img src="git.png" width="16" height="16" title="code/datums/position_point_vector.dm 135"></a></h3><p>Calculated x movement amounts to prevent having to do trig every step.</p><h3 id="var/mpy"><aside class="declaration">var </aside>mpy <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/position_point_vector.dm#L137"><img src="git.png" width="16" height="16" title="code/datums/position_point_vector.dm 137"></a></h3><p>Calculated y movement amounts to prevent having to do trig every step.</p><h3 id="var/speed"><aside class="declaration">var </aside>speed <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/position_point_vector.dm#L131"><img src="git.png" width="16" height="16" title="code/datums/position_point_vector.dm 131"></a></h3><p>Pixels per iteration</p><h2 id="proc">Proc Details</h2><h3 id="proc/set_angle"><aside class="declaration">proc </aside>set_angle<aside>(new_angle) <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/position_point_vector.dm#L181"><img src="git.png" width="16" height="16" title="code/datums/position_point_vector.dm 181"></a></aside></h3><p>Calculations use "byond angle" where north is 0 instead of 90, and south is 180 instead of 270.</p><h3 id="proc/set_location"><aside class="declaration">proc </aside>set_location<aside>(tile_x, tile_y, tile_z, p_x, p_y) <a href="https://github.com/ParadiseSS13/Paradise/blob/8a8a00a2a9bec485351e5f219982b7315d3504fa/code/datums/position_point_vector.dm#L155"><img src="git.png" width="16" height="16" title="code/datums/position_point_vector.dm 155"></a></aside></h3><p>Same effect as initiliaze_location, but without setting the starting_x/y/z</p></main><footer>paradise.dme <a href="https://github.com/ParadiseSS13/Paradise/tree/8a8a00a2a9bec485351e5f219982b7315d3504fa">8a8a00a</a> (master) — <a href="https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md">dmdoc 1.11.0</a></footer></body></html> |