Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ operator-() [2/2]

static unsafe Matrix4x4 System.Numerics.Matrix4x4.operator- ( Matrix4x4 value1,
Matrix4x4 value2 )
inlinestatic

Definition at line 277 of file Matrix4x4.cs.

278 {
280 {
281 }
282 if (Sse.IsSupported)
283 {
284 Sse.Store(&value1.M11, Sse.Subtract(Sse.LoadVector128(&value1.M11), Sse.LoadVector128(&value2.M11)));
285 Sse.Store(&value1.M21, Sse.Subtract(Sse.LoadVector128(&value1.M21), Sse.LoadVector128(&value2.M21)));
286 Sse.Store(&value1.M31, Sse.Subtract(Sse.LoadVector128(&value1.M31), Sse.LoadVector128(&value2.M31)));
287 Sse.Store(&value1.M41, Sse.Subtract(Sse.LoadVector128(&value1.M41), Sse.LoadVector128(&value2.M41)));
288 return value1;
289 }
290 System.Runtime.CompilerServices.Unsafe.SkipInit(out Matrix4x4 result);
291 result.M11 = value1.M11 - value2.M11;
292 result.M12 = value1.M12 - value2.M12;
293 result.M13 = value1.M13 - value2.M13;
294 result.M14 = value1.M14 - value2.M14;
295 result.M21 = value1.M21 - value2.M21;
296 result.M22 = value1.M22 - value2.M22;
297 result.M23 = value1.M23 - value2.M23;
298 result.M24 = value1.M24 - value2.M24;
299 result.M31 = value1.M31 - value2.M31;
300 result.M32 = value1.M32 - value2.M32;
301 result.M33 = value1.M33 - value2.M33;
302 result.M34 = value1.M34 - value2.M34;
303 result.M41 = value1.M41 - value2.M41;
304 result.M42 = value1.M42 - value2.M42;
305 result.M43 = value1.M43 - value2.M43;
306 result.M44 = value1.M44 - value2.M44;
307 return result;
308 }
static unsafe void Store(float *address, Vector128< float > source)
Definition Sse.cs:417
static new bool IsSupported
Definition Sse.cs:30
static unsafe Vector128< float > LoadVector128(float *address)
Definition Sse.cs:257
static Vector128< float > Subtract(Vector128< float > left, Vector128< float > right)
Definition Sse.cs:442
Matrix4x4(float m11, float m12, float m13, float m14, float m21, float m22, float m23, float m24, float m31, float m32, float m33, float m34, float m41, float m42, float m43, float m44)
Definition Matrix4x4.cs:93

References System.Runtime.Intrinsics.Arm.AdvSimd.IsSupported, System.Runtime.Intrinsics.X86.Sse.IsSupported, System.Runtime.Intrinsics.X86.Sse.LoadVector128(), System.Numerics.Matrix4x4.M11, System.Numerics.Matrix4x4.M12, System.Numerics.Matrix4x4.M13, System.Numerics.Matrix4x4.M14, System.Numerics.Matrix4x4.M21, System.Numerics.Matrix4x4.M22, System.Numerics.Matrix4x4.M23, System.Numerics.Matrix4x4.M24, System.Numerics.Matrix4x4.M31, System.Numerics.Matrix4x4.M32, System.Numerics.Matrix4x4.M33, System.Numerics.Matrix4x4.M34, System.Numerics.Matrix4x4.M41, System.Numerics.Matrix4x4.M42, System.Numerics.Matrix4x4.M43, System.Numerics.Matrix4x4.M44, System.Runtime.Intrinsics.X86.Sse.Store(), and System.Runtime.Intrinsics.X86.Sse.Subtract().