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

◆ ScalarFloor()

static T System.Numerics.Vector< T >.ScalarFloor ( T value)
inlinestaticprivate

Definition at line 2192 of file Vector.cs.

2193 {
2194 if (typeof(T) == typeof(float))
2195 {
2196 return (T)(object)MathF.Floor((float)(object)value);
2197 }
2198 if (typeof(T) == typeof(double))
2199 {
2200 return (T)(object)Math.Floor((double)(object)value);
2201 }
2202 throw new NotSupportedException(SR.Arg_TypeNotSupported);
2203 }

References System.SR.Arg_TypeNotSupported, System.Math.Floor(), System.MathF.Floor(), and System.value.

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