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

◆ ScalarCeiling()

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

Definition at line 2178 of file Vector.cs.

2179 {
2180 if (typeof(T) == typeof(float))
2181 {
2182 return (T)(object)MathF.Ceiling((float)(object)value);
2183 }
2184 if (typeof(T) == typeof(double))
2185 {
2186 return (T)(object)Math.Ceiling((double)(object)value);
2187 }
2188 throw new NotSupportedException(SR.Arg_TypeNotSupported);
2189 }

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

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