View vectortest.nim
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 =