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

◆ ScalarLessThanOrEqual()

static bool System.Numerics.Vector< T >.ScalarLessThanOrEqual ( T left,
T right )
inlinestaticprivate

Definition at line 1604 of file Vector.cs.

1605 {
1606 if (typeof(T) == typeof(byte))
1607 {
1608 return (byte)(object)left <= (byte)(object)right;
1609 }
1610 if (typeof(T) == typeof(sbyte))
1611 {
1612 return (sbyte)(object)left <= (sbyte)(object)right;
1613 }
1614 if (typeof(T) == typeof(ushort))
1615 {
1616 return (ushort)(object)left <= (ushort)(object)right;
1617 }
1618 if (typeof(T) == typeof(short))
1619 {
1620 return (short)(object)left <= (short)(object)right;
1621 }
1622 if (typeof(T) == typeof(uint))
1623 {
1624 return (uint)(object)left <= (uint)(object)right;
1625 }
1626 if (typeof(T) == typeof(int))
1627 {
1628 return (int)(object)left <= (int)(object)right;
1629 }
1630 if (typeof(T) == typeof(ulong))
1631 {
1632 return (ulong)(object)left <= (ulong)(object)right;
1633 }
1634 if (typeof(T) == typeof(long))
1635 {
1636 return (long)(object)left <= (long)(object)right;
1637 }
1638 if (typeof(T) == typeof(float))
1639 {
1640 return (float)(object)left <= (float)(object)right;
1641 }
1642 if (typeof(T) == typeof(double))
1643 {
1644 return (double)(object)left <= (double)(object)right;
1645 }
1646 if (typeof(T) == typeof(UIntPtr))
1647 {
1648 return (nuint)(UIntPtr)(object)left <= (nuint)(UIntPtr)(object)right;
1649 }
1650 if (typeof(T) == typeof(IntPtr))
1651 {
1652 return (nint)(IntPtr)(object)left <= (nint)(IntPtr)(object)right;
1653 }
1654 throw new NotSupportedException(SR.Arg_TypeNotSupported);
1655 }

References System.SR.Arg_TypeNotSupported.

Referenced by System.Numerics.Vector< T >.LessThanOrEqual().