Beispiel #1
0
        public static Bounds Add(ref Vec3 v, ref Bounds b)
        {
            Bounds bounds;

            Vec3.Add(ref v, ref b.rf, out bounds.rf);
            Vec3.Add(ref v, ref b.rG, out bounds.rG);
            return(bounds);
        }
Beispiel #2
0
        public static Bounds operator +(Vec3 v, Bounds b)
        {
            Bounds bounds;

            Vec3.Add(ref v, ref b.rf, out bounds.rf);
            Vec3.Add(ref v, ref b.rG, out bounds.rG);
            return(bounds);
        }
Beispiel #3
0
        public static Bounds operator +(Bounds b, Vec3 v)
        {
            Bounds bounds;

            Vec3.Add(ref b.rf, ref v, out bounds.rf);
            Vec3.Add(ref b.rG, ref v, out bounds.rG);
            return(bounds);
        }
Beispiel #4
0
 public static void Add(ref Vec3 v, ref Bounds b, out Bounds result)
 {
     Vec3.Add(ref v, ref b.rf, out result.rf);
     Vec3.Add(ref v, ref b.rG, out result.rG);
 }