Searched refs:xyY (Results 1 – 3 of 3) sorted by relevance
222 static constexpr float2 xyY(const float3& XYZ) { in xyY() function229 static constexpr float3 XYZ(const float3& xyY) { in XYZ() argument230 return float3{(xyY.x * xyY.z) / xyY.y, xyY.z, ((1 - xyY.x - xyY.y) * xyY.z) / xyY.y}; in XYZ()
1760 private static float[] xyYToXyz(@NonNull @Size(2) float[] xyY) { in xyYToXyz() argument1761 return new float[] { xyY[0] / xyY[1], 1.0f, (1 - xyY[0] - xyY[1]) / xyY[1] }; in xyYToXyz()1772 private static void xyYToUv(@NonNull @Size(multiple = 2) float[] xyY) { in xyYToUv()1773 for (int i = 0; i < xyY.length; i += 2) { in xyYToUv()1774 float x = xyY[i]; in xyYToUv()1775 float y = xyY[i + 1]; in xyYToUv()1781 xyY[i] = u; in xyYToUv()1782 xyY[i + 1] = v; in xyYToUv()