Creates a new XYZ color object from a vector of XYZ components.
This utility function is useful when working with color calculations that produce arrays of values rather than individual components.
A vector containing the XYZ components [x, y, z]
Optional
The alpha (opacity) component (0-1), optional
The reference white point to use, defaults to D65
A new XYZ color object
If the vector does not have exactly 3 components
Creates a new XYZ color object from a vector of XYZ components.
This utility function is useful when working with color calculations that produce arrays of values rather than individual components.