Skip to content

Instantly share code, notes, and snippets.

View treellama's full-sized avatar

Gregory Smith treellama

  • Pittsburgh, PA
  • 21:06 (UTC -04:00)
View GitHub Profile
function ray_to_line_segment(x0, y0, z0, pitch, yaw)
local max = 32767 / 1024
local min = -32
local dx = math.cos(pitch) * math.cos(yaw)
local dy = math.cos(pitch) * math.sin(yaw)
local dz = math.sin(pitch)
local x1 = x0 + reach * dx
local y1 = y0 + reach * dy

Keybase proof

I hereby claim:

  • I am treellama on github.
  • I am treellama (https://keybase.io/treellama) on keybase.
  • I have a public key whose fingerprint is 01FF 2C00 B278 D612 CA27 8104 6BE2 31D4 D34B 0317

To claim this, I am signing this object:

<marathon>
<player>
<item index="6" type="5"/>
</player>
</marathon>
<marathon>
<console lua="true"/>
</marathon>
<marathon>
<overhead_map mode="2"/>
</marathon>