Struct CieXyy
Represents an CIE xyY 1931 color https://en.wikipedia.org/wiki/CIE_1931_color_space#CIE_xy_chromaticity_diagram_and_the_CIE_xyY_color_space
Implements
Namespace: SixLabors.ImageSharp.ColorSpaces
Assembly: SixLabors.ImageSharp.dll
Syntax
public readonly struct CieXyy
Constructors
| Improve this Doc View SourceCieXyy(Single, Single, Single)
Initializes a new instance of the CieXyy struct.
Declaration
public CieXyy(float x, float y, float yl)
Parameters
Type | Name | Description |
---|---|---|
Single | x | The x chroma component. |
Single | y | The y chroma component. |
Single | yl | The y luminance component. |
CieXyy(Vector3)
Initializes a new instance of the CieXyy struct.
Declaration
public CieXyy(Vector3 vector)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | vector | The vector representing the x, y, Y components. |
Properties
| Improve this Doc View SourceX
Gets the X chrominance component.
Declaration
public readonly float X { get; }
Property Value
Type | Description |
---|---|
Single |
Y
Gets the Y chrominance component.
Declaration
public readonly float Y { get; }
Property Value
Type | Description |
---|---|
Single |
Yl
Gets the Y luminance component.
Declaration
public readonly float Yl { get; }
Property Value
Type | Description |
---|---|
Single |
Methods
| Improve this Doc View SourceEquals(CieXyy)
Declaration
public readonly bool Equals(CieXyy other)
Parameters
Type | Name | Description |
---|---|---|
CieXyy | other |
Returns
Type | Description |
---|---|
Boolean |
Equals(Nullable<Object>)
Declaration
public override readonly bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
Nullable<Object> | obj |
Returns
Type | Description |
---|---|
Boolean |
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
ToString()
Declaration
public override readonly string ToString()
Returns
Type | Description |
---|---|
String |
Operators
| Improve this Doc View SourceEquality(CieXyy, CieXyy)
Compares two CieXyy objects for equality.
Declaration
public static bool operator ==(CieXyy left, CieXyy right)
Parameters
Type | Name | Description |
---|---|---|
CieXyy | left | The CieXyy on the left side of the operand. |
CieXyy | right | The CieXyy on the right side of the operand. |
Returns
Type | Description |
---|---|
Boolean | True if the current left is equal to the |
Inequality(CieXyy, CieXyy)
Compares two CieXyy objects for inequality.
Declaration
public static bool operator !=(CieXyy left, CieXyy right)
Parameters
Type | Name | Description |
---|---|---|
CieXyy | left | The CieXyy on the left side of the operand. |
CieXyy | right | The CieXyy on the right side of the operand. |
Returns
Type | Description |
---|---|
Boolean | True if the current left is unequal to the |