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