public Ray(Vec3 origin, Vec3 direction) { Origin = origin; Direction = direction; _invDir = 1f / Direction; _dirSign = Direction.Sign().Max(new Vec3(0)).ToVeci(); }
public Vec4i(Vec3i vec, int w) { X = vec.X; Y = vec.Y; Z = vec.Z; W = w; }
public Vec2i(Vec3i vec) { X = vec.X; Y = vec.Y; }
public static Vec3 ToVec(this Vec3i vec) { return(new Vec3(vec.X, vec.Y, vec.Z)); }