toLab method

List<double> toLab()

Implementation

List<double> toLab() {
  final double hRad = toRadians(h);

  return [
    l,
    c * math.cos(hRad),
    c * math.sin(hRad),
  ];
}