Example #1
0
 public static Point3  Shr(this Point3 p, int amt)
 {
     return(new Point3(MathEx.ShiftRight(p.X, amt), MathEx.ShiftRight(p.Y, amt), MathEx.ShiftRight(p.Z, amt)));
 }
Example #2
0
 public static Point3  Add(this Vector3 a, Point3 b)
 {
     return(new Point3(a.X + b.X, a.Y + b.Y, a.Z + b.Z));
 }
Example #3
0
 public static Point3  Div(this Point3 p, T factor)
 {
     return(new Point3(p.X / factor, p.Y / factor, p.Z * factor));
 }
Example #4
0
 public static Point3  Mul(this Point3 p, T factor)
 {
     return(new Point3(p.X * factor, p.Y * factor, p.Z * factor));
 }
Example #5
0
 public static Vector3 Sub(this Point3 a, Point3 b)
 {
     return(new Vector3(a.X - b.X, a.Y - b.Y, a.Z - b.Z));
 }
Example #6
0
 public static Point3  Shr(this Point3 p, int amt)
 {
     return(new Point3((T)(p.X >> amt), (T)(p.Y >> amt), (T)(p.Z >> amt)));
 }
Example #7
0
 public static Point3  Shl(this Point3 p, int amt)
 {
     return(new Point3((T)(p.X << amt), (T)(p.Y << amt), (T)(p.Z << amt)));
 }