public static void Clamp(ref Vec3 value1, ref Vec3 min, ref Vec3 max, out Vec3 result) { result.X = Calc.Clamp(value1.X, min.X, max.X); result.Y = Calc.Clamp(value1.Y, min.Y, max.Y); result.Z = Calc.Clamp(value1.Z, min.Z, max.Z); }
public Color WithOpacity(float opacity) { opacity = Calc.Normalize(opacity); return(new Color(this, opacity)); }