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
x
floatChromaticity coordinate x (usually from 0 to 1)
y
floatChromaticity 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
obj
object
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
left
CieXyChromaticityCoordinatesThe CieXyChromaticityCoordinates on the left side of the operand.
right
CieXyChromaticityCoordinatesThe CieXyChromaticityCoordinates on the right side of the operand.
Returns
- bool
True if the current left is equal to the
right
parameter; otherwise, false.
operator !=(CieXyChromaticityCoordinates, CieXyChromaticityCoordinates)
Compares two CieXyChromaticityCoordinates objects for inequality
public static bool operator !=(CieXyChromaticityCoordinates left, CieXyChromaticityCoordinates right)
Parameters
left
CieXyChromaticityCoordinatesThe CieXyChromaticityCoordinates on the left side of the operand.
right
CieXyChromaticityCoordinatesThe CieXyChromaticityCoordinates on the right side of the operand.
Returns
- bool
True if the current left is unequal to the
right
parameter; otherwise, false.