import { NamedUnit } from "../../NamedUnit.js";
import { UnitMatrix } from "../../UnitMatrix.js";

/**
 * SI derived unit of absorbed ionising-radiation dose. 1 Gy = 1 J / kg = 1 m^2 / s^2.
 *
 * Note: dimensionally indistinguishable from {@link SIEVERT}.
 *
 * @type {NamedUnit}
 */
export const GRAY = new NamedUnit(
    'Gray',
    'Gy',
    'SI derived unit of absorbed ionising-radiation dose. 1 Gy = 1 J / kg.',
    new UnitMatrix().set(2, 0, -2, 0, 0, 0, 0)
);
