Struct CieXyChromaticityCoordinates
- Namespace
- SixLabors.ImageSharp.ColorProfiles
- 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)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(CieXyChromaticityCoordinates other)
Parameters
otherCieXyChromaticityCoordinatesAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()
Returns
- string
The fully qualified type name.
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.