daily pastebin goal
76%
SHARE
TWEET

Untitled

a guest Jan 22nd, 2018 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FMatrix operator*( const FMatrix& Other ) const
  2.     {
  3.         FMatrix Result;
  4.  
  5.         Result.XPlane.X = XPlane.X * Other.XPlane.X + XPlane.Y * Other.YPlane.X + XPlane.Z * Other.ZPlane.X + XPlane.W * Other.WPlane.X;
  6.         Result.XPlane.Y = XPlane.X * Other.XPlane.Y + XPlane.Y * Other.YPlane.Y + XPlane.Z * Other.ZPlane.Y + XPlane.W * Other.WPlane.Y;
  7.         Result.XPlane.Z = XPlane.X * Other.XPlane.Z + XPlane.Y * Other.YPlane.Z + XPlane.Z * Other.ZPlane.Z + XPlane.W * Other.WPlane.Z;
  8.         Result.XPlane.W = XPlane.X * Other.XPlane.W + XPlane.Y * Other.YPlane.W + XPlane.Z * Other.ZPlane.W + XPlane.W * Other.WPlane.W;
  9.  
  10.         Result.YPlane.X = YPlane.X * Other.XPlane.X + YPlane.Y * Other.YPlane.X + YPlane.Z * Other.ZPlane.X + YPlane.W * Other.WPlane.X;
  11.         Result.YPlane.Y = YPlane.X * Other.XPlane.Y + YPlane.Y * Other.YPlane.Y + YPlane.Z * Other.ZPlane.Y + YPlane.W * Other.WPlane.Y;
  12.         Result.YPlane.Z = YPlane.X * Other.XPlane.Z + YPlane.Y * Other.YPlane.Z + YPlane.Z * Other.ZPlane.Z + YPlane.W * Other.WPlane.Z;
  13.         Result.YPlane.W = YPlane.X * Other.XPlane.W + YPlane.Y * Other.YPlane.W + YPlane.Z * Other.ZPlane.W + YPlane.W * Other.WPlane.W;
  14.  
  15.         Result.ZPlane.X = ZPlane.X * Other.XPlane.X + ZPlane.Y * Other.YPlane.X + ZPlane.Z * Other.ZPlane.X + ZPlane.W * Other.WPlane.X;
  16.         Result.ZPlane.Y = ZPlane.X * Other.XPlane.Y + ZPlane.Y * Other.YPlane.Y + ZPlane.Z * Other.ZPlane.Y + ZPlane.W * Other.WPlane.Y;
  17.         Result.ZPlane.Z = ZPlane.X * Other.XPlane.Z + ZPlane.Y * Other.YPlane.Z + ZPlane.Z * Other.ZPlane.Z + ZPlane.W * Other.WPlane.Z;
  18.         Result.ZPlane.W = ZPlane.X * Other.XPlane.W + ZPlane.Y * Other.YPlane.W + ZPlane.Z * Other.ZPlane.W + ZPlane.W * Other.WPlane.W;
  19.  
  20.         Result.WPlane.X = WPlane.X * Other.XPlane.X + WPlane.Y * Other.YPlane.X + WPlane.Z * Other.ZPlane.X + WPlane.W * Other.WPlane.X;
  21.         Result.WPlane.Y = WPlane.X * Other.XPlane.Y + WPlane.Y * Other.YPlane.Y + WPlane.Z * Other.ZPlane.Y + WPlane.W * Other.WPlane.Y;
  22.         Result.WPlane.Z = WPlane.X * Other.XPlane.Z + WPlane.Y * Other.YPlane.Z + WPlane.Z * Other.ZPlane.Z + WPlane.W * Other.WPlane.Z;
  23.         Result.WPlane.W = WPlane.X * Other.XPlane.W + WPlane.Y * Other.YPlane.W + WPlane.Z * Other.ZPlane.W + WPlane.W * Other.WPlane.W;
  24.  
  25.         return Result;
  26.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top