public static ColorHSV LerpUnclamped(ColorHSV a, ColorHSV v, float t) { return(new ColorHSV(a.h + (v.h - a.h) * t, a.s + (v.s - a.s) * t, a.v + (v.v - a.v) * t, a.a + (v.a - a.a) * t)); }
public bool Equals(ColorHSV other) { return(Mathf.Approximately(h, other.h) && Mathf.Approximately(s, other.s) && Mathf.Approximately(v, other.v) && Mathf.Approximately(a, other.a)); }
public static ColorHSV Lerp(ColorHSV a, ColorHSV b, float t) { t = Mathf.Clamp01(t); return(LerpUnclamped(a, b, t)); }