Struct CieXyy
- Namespace
- SixLabors.ImageSharp.ColorSpaces
- Assembly
- SixLabors.ImageSharp.dll
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
public readonly struct CieXyy : IEquatable<CieXyy>
- Implements
- Inherited Members
Constructors
CieXyy(Vector3)
Initializes a new instance of the CieXyy struct.
public CieXyy(Vector3 vector)
Parameters
vectorVector3The vector representing the x, y, Y components.
CieXyy(float, float, float)
Initializes a new instance of the CieXyy struct.
public CieXyy(float x, float y, float yl)
Parameters
Properties
X
Gets the X chrominance component.
public float X { get; }
Property Value
Y
Gets the Y chrominance component.
public float Y { get; }
Property Value
Yl
Gets the Y luminance component.
public float Yl { get; }
Property Value
Methods
Equals(CieXyy)
public bool Equals(CieXyy other)
Parameters
otherCieXyy
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(CieXyy, CieXyy)
Compares two CieXyy objects for equality.
public static bool operator ==(CieXyy left, CieXyy right)
Parameters
leftCieXyyThe CieXyy on the left side of the operand.
rightCieXyyThe CieXyy on the right side of the operand.
Returns
- bool
True if the current left is equal to the
rightparameter; otherwise, false.
operator !=(CieXyy, CieXyy)
Compares two CieXyy objects for inequality.
public static bool operator !=(CieXyy left, CieXyy right)
Parameters
leftCieXyyThe CieXyy on the left side of the operand.
rightCieXyyThe CieXyy on the right side of the operand.
Returns
- bool
True if the current left is unequal to the
rightparameter; otherwise, false.