BrawlCrate v0.41
Wii File Editor
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
BrawlLib.Imaging.XYZPixel Struct Reference

Public Member Functions

 XYZPixel (double x, double y, double z)
 

Static Public Member Functions

static operator XYZPixel (ARGBPixel p)
 

Public Attributes

double X
 
double Y
 
double Z
 

Constructor & Destructor Documentation

◆ XYZPixel()

BrawlLib.Imaging.XYZPixel.XYZPixel ( double  x,
double  y,
double  z 
)
inline
57 {
58 X = x;
59 Y = y;
60 Z = z;
61 }
double Y
Definition: CIE.cs:53
double X
Definition: CIE.cs:52
double Z
Definition: CIE.cs:54

Member Function Documentation

◆ operator XYZPixel()

static BrawlLib.Imaging.XYZPixel.operator XYZPixel ( ARGBPixel  p)
inlineexplicitstatic
64 {
65 double r = CIE.powtable[p.R];
66 double g = CIE.powtable[p.G];
67 double b = CIE.powtable[p.B];
68
69 double x = CIE.mRGB_XYZ[0, 0] * r + CIE.mRGB_XYZ[0, 1] * g + CIE.mRGB_XYZ[0, 2] * b;
70 double y = CIE.mRGB_XYZ[1, 0] * r + CIE.mRGB_XYZ[1, 1] * g + CIE.mRGB_XYZ[1, 2] * b;
71 double z = CIE.mRGB_XYZ[2, 0] * r + CIE.mRGB_XYZ[2, 1] * g + CIE.mRGB_XYZ[2, 2] * b;
72
73 return new XYZPixel(x, y, z);
74 }
XYZPixel(double x, double y, double z)
Definition: CIE.cs:56

Member Data Documentation

◆ X

double BrawlLib.Imaging.XYZPixel.X

◆ Y

double BrawlLib.Imaging.XYZPixel.Y

◆ Z

double BrawlLib.Imaging.XYZPixel.Z

The documentation for this struct was generated from the following file: