Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="color"></param>
        /// <returns></returns>
        public static Vector3d LCHtoLAB(Vector3d color)
        {
            double l = color.X;
            double c = color.Y;
            double h = SlurMath.ToRadians(color.Z);

            double a = Math.Cos(h) * c;
            double b = Math.Sin(h) * c;

            return(new Vector3d(l, a, b));
        }