Vector<T>.Clip Method
Clips a vector so its elements are within the specified interval.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0
C#
A vector whose elements are constrained to the specified interval.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.7.0
[ObsoleteAttribute("Use Clamp instead.")]
public static Vector<T> Clip(
Vector<T> vector,
T lowerBound,
T upperBound
)Parameters
- vector Vector<T>
- A Vector<T>.
- lowerBound T
- The lower bound of the interval.
- upperBound T
- The upper bound of the interval.
Return Value
Vector<T>A vector whose elements are constrained to the specified interval.
Remarks
Use Clamp(Vector<T>, T, T) instead.