Struct CieXyz
Represents an CIE XYZ 1931 color https://en.wikipedia.org/wiki/CIE_1931_color_space#Definition_of_the_CIE_XYZ_color_space
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.ColorSpaces
Assembly: SixLabors.ImageSharp.dll
Syntax
public readonly struct CieXyz : IEquatable<CieXyz>Constructors
| Improve this Doc View SourceCieXyz(Vector3)
Initializes a new instance of the CieXyz struct.
Declaration
public CieXyz(Vector3 vector)Parameters
| Type | Name | Description | 
|---|---|---|
| Vector3 | vector | The vector representing the x, y, z components. | 
CieXyz(Single, Single, Single)
Initializes a new instance of the CieXyz struct.
Declaration
public CieXyz(float x, float y, float z)Parameters
| Type | Name | Description | 
|---|---|---|
| Single | x | X is a mix (a linear combination) of cone response curves chosen to be nonnegative | 
| Single | y | The y luminance component. | 
| Single | z | Z is quasi-equal to blue stimulation, or the S cone of the human eye. | 
Fields
| Improve this Doc View SourceX
Gets the X component. A mix (a linear combination) of cone response curves chosen to be nonnegative.
Declaration
public readonly float XField Value
| Type | Description | 
|---|---|
| Single | 
Y
Gets the Y luminance component.
Declaration
public readonly float YField Value
| Type | Description | 
|---|---|
| Single | 
Z
Gets the Z component. Quasi-equal to blue stimulation, or the S cone response.
Declaration
public readonly float ZField Value
| Type | Description | 
|---|---|
| Single | 
Methods
| Improve this Doc View SourceEquals(CieXyz)
Declaration
public readonly bool Equals(CieXyz other)Parameters
| Type | Name | Description | 
|---|---|---|
| CieXyz | other | 
Returns
| Type | Description | 
|---|---|
| Boolean | 
Equals(Object)
Declaration
public override readonly bool Equals(object obj)Parameters
| Type | Name | Description | 
|---|---|---|
| Object | obj | 
Returns
| Type | Description | 
|---|---|
| Boolean | 
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override readonly int GetHashCode()Returns
| Type | Description | 
|---|---|
| Int32 | 
Overrides
| Improve this Doc View SourceToString()
Declaration
public override readonly string ToString()Returns
| Type | Description | 
|---|---|
| String | 
Overrides
| Improve this Doc View SourceToVector3()
Returns a new Vector3 representing this instance.
Declaration
public readonly Vector3 ToVector3()Returns
| Type | Description | 
|---|---|
| Vector3 | The Vector3. | 
Operators
| Improve this Doc View SourceEquality(CieXyz, CieXyz)
Compares two CieXyz objects for equality.
Declaration
public static bool operator ==(CieXyz left, CieXyz right)Parameters
| Type | Name | Description | 
|---|---|---|
| CieXyz | left | The CieXyz on the left side of the operand. | 
| CieXyz | right | The CieXyz on the right side of the operand. | 
Returns
| Type | Description | 
|---|---|
| Boolean | True if the current left is equal to the  | 
Inequality(CieXyz, CieXyz)
Compares two CieXyz objects for inequality.
Declaration
public static bool operator !=(CieXyz left, CieXyz right)Parameters
| Type | Name | Description | 
|---|---|---|
| CieXyz | left | The CieXyz on the left side of the operand. | 
| CieXyz | right | The CieXyz on the right side of the operand. | 
Returns
| Type | Description | 
|---|---|
| Boolean | True if the current left is unequal to the  |