Skip to content

Instantly share code, notes, and snippets.

😎
Dreaming the Life

John Novak johnnovak

😎
Dreaming the Life
Block or report user

Report or block johnnovak

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@johnnovak
johnnovak / vectortest.nim
Created Oct 21, 2016
GLM vector speed test
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 =
You can’t perform that action at this time.