Skip to content

Instantly share code, notes, and snippets.

View johnnovak's full-sized avatar
😎
Dreaming the life

John Novak johnnovak

😎
Dreaming the life
View GitHub Profile
@johnnovak
johnnovak / vectortest.nim
Created October 21, 2016 08:22
GLM vector speed test
import math, times
import glm
type
Ray* = ref object
orig*, dir*: Vec3[float] # origin and normalized direction vector
invDir*: Vec3[float] # 1/dir
sign*: array[3, int]
proc initRay*(orig, dir: Vec3[float]): Ray =