Skip to content

Instantly share code, notes, and snippets.

Dreaming the Life

John Novak johnnovak

Dreaming the Life
View GitHub Profile
johnnovak / vectortest.nim
Created Oct 21, 2016
GLM vector speed test
View vectortest.nim
import math, times
import glm
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 =