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

◆ operator-() [1/2]

static unsafe Matrix4x4 System.Numerics.Matrix4x4.operator- ( Matrix4x4 value)
inlinestatic

Definition at line 310 of file Matrix4x4.cs.

311 {
313 {
314 }
315 if (Sse.IsSupported)
316 {
318 Sse.Store(&value.M11, Sse.Subtract(zero, Sse.LoadVector128(&value.M11)));
319 Sse.Store(&value.M21, Sse.Subtract(zero, Sse.LoadVector128(&value.M21)));
320 Sse.Store(&value.M31, Sse.Subtract(zero, Sse.LoadVector128(&value.M31)));
321 Sse.Store(&value.M41, Sse.Subtract(zero, Sse.LoadVector128(&value.M41)));
322 return value;
323 }
324 System.Runtime.CompilerServices.Unsafe.SkipInit(out Matrix4x4 result);
325 result.M11 = 0f - value.M11;
326 result.M12 = 0f - value.M12;
327 result.M13 = 0f - value.M13;
328 result.M14 = 0f - value.M14;
329 result.M21 = 0f - value.M21;
330 result.M22 = 0f - value.M22;
331 result.M23 = 0f - value.M23;
332 result.M24 = 0f - value.M24;
333 result.M31 = 0f - value.M31;
334 result.M32 = 0f - value.M32;
335 result.M33 = 0f - value.M33;
336 result.M34 = 0f - value.M34;
337 result.M41 = 0f - value.M41;
338 result.M42 = 0f - value.M42;
339 result.M43 = 0f - value.M43;
340 result.M44 = 0f - value.M44;
341 return result;
342 }
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.Runtime.Intrinsics.X86.Sse.Store(), System.Runtime.Intrinsics.X86.Sse.Subtract(), System.value, and System.Runtime.Intrinsics.Vector128< T >.Zero.