Struct CieXyChromaticityCoordinates
- Namespace
- SixLabors.ImageSharp.ColorSpaces.Conversion
- Assembly
- SixLabors.ImageSharp.dll
Represents the coordinates of CIEXY chromaticity space.
public readonly struct CieXyChromaticityCoordinates : IEquatable<CieXyChromaticityCoordinates>
- Implements
- Inherited Members
Constructors
CieXyChromaticityCoordinates(float, float)
Initializes a new instance of the CieXyChromaticityCoordinates struct.
public CieXyChromaticityCoordinates(float x, float y)
Parameters
xfloatChromaticity coordinate x (usually from 0 to 1)
yfloatChromaticity coordinate y (usually from 0 to 1)
Properties
X
Gets the chromaticity X-coordinate.
public float X { get; }
Property Value
Remarks
Ranges usually from 0 to 1.
Y
Gets the chromaticity Y-coordinate
public float Y { get; }
Property Value
Remarks
Ranges usually from 0 to 1.
Methods
Equals(CieXyChromaticityCoordinates)
public bool Equals(CieXyChromaticityCoordinates other)
Parameters
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 ==(CieXyChromaticityCoordinates, CieXyChromaticityCoordinates)
Compares two CieXyChromaticityCoordinates objects for equality.
public static bool operator ==(CieXyChromaticityCoordinates left, CieXyChromaticityCoordinates right)
Parameters
leftCieXyChromaticityCoordinatesThe CieXyChromaticityCoordinates on the left side of the operand.
rightCieXyChromaticityCoordinatesThe CieXyChromaticityCoordinates on the right side of the operand.
Returns
- bool
True if the current left is equal to the
rightparameter; otherwise, false.
operator !=(CieXyChromaticityCoordinates, CieXyChromaticityCoordinates)
Compares two CieXyChromaticityCoordinates objects for inequality
public static bool operator !=(CieXyChromaticityCoordinates left, CieXyChromaticityCoordinates right)
Parameters
leftCieXyChromaticityCoordinatesThe CieXyChromaticityCoordinates on the left side of the operand.
rightCieXyChromaticityCoordinatesThe CieXyChromaticityCoordinates on the right side of the operand.
Returns
- bool
True if the current left is unequal to the
rightparameter; otherwise, false.