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
Inherited Members
Namespace: SixLabors.ImageSharp.ColorSpaces
Assembly: SixLabors.ImageSharp.dll
Syntax
public readonly struct CieXyy : IEquatable<CieXyy>
Constructors
| Edit this page View SourceCieXyy(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. |
CieXyy(float, float, float)
Initializes a new instance of the CieXyy struct.
Declaration
public CieXyy(float x, float y, float yl)
Parameters
Type | Name | Description |
---|---|---|
float | x | The x chroma component. |
float | y | The y chroma component. |
float | yl | The y luminance component. |
Properties
| Edit this page View SourceX
Gets the X chrominance component.
Declaration
public float X { get; }
Property Value
Type | Description |
---|---|
float |
Y
Gets the Y chrominance component.
Declaration
public float Y { get; }
Property Value
Type | Description |
---|---|
float |
Yl
Gets the Y luminance component.
Declaration
public float Yl { get; }
Property Value
Type | Description |
---|---|
float |
Methods
| Edit this page View SourceEquals(CieXyy)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(CieXyy other)
Parameters
Type | Name | Description |
---|---|---|
CieXyy | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the |
Equals(object?)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current instance. |
Returns
Type | Description |
---|---|
bool | true if |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
| Edit this page View SourceToString()
Returns the fully qualified type name of this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | The fully qualified type name. |
Overrides
Operators
| Edit this page View Sourceoperator ==(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 |
---|---|
bool | True if the current left is equal to the |
operator !=(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 |
---|---|
bool | True if the current left is unequal to the |