Struct CieXyChromaticityCoordinates
Represents the coordinates of CIEXY chromaticity space.
Implements
Namespace: SixLabors.ImageSharp.ColorSpaces.Conversion
Assembly: SixLabors.ImageSharp.dll
Syntax
public readonly struct CieXyChromaticityCoordinates
Constructors
| Improve this Doc View SourceCieXyChromaticityCoordinates(Single, Single)
Initializes a new instance of the CieXyChromaticityCoordinates struct.
Declaration
public CieXyChromaticityCoordinates(float x, float y)
Parameters
Type | Name | Description |
---|---|---|
Single | x | Chromaticity coordinate x (usually from 0 to 1) |
Single | y | Chromaticity coordinate y (usually from 0 to 1) |
Properties
| Improve this Doc View SourceX
Gets the chromaticity X-coordinate.
Declaration
public readonly float X { get; }
Property Value
Type | Description |
---|---|
Single |
Remarks
Ranges usually from 0 to 1.
Y
Gets the chromaticity Y-coordinate
Declaration
public readonly float Y { get; }
Property Value
Type | Description |
---|---|
Single |
Remarks
Ranges usually from 0 to 1.
Methods
| Improve this Doc View SourceEquals(CieXyChromaticityCoordinates)
Declaration
public readonly bool Equals(CieXyChromaticityCoordinates other)
Parameters
Type | Name | Description |
---|---|---|
CieXyChromaticityCoordinates | other |
Returns
Type | Description |
---|---|
Boolean |
Equals(Nullable<Object>)
Declaration
public override readonly bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
Nullable<Object> | obj |
Returns
Type | Description |
---|---|
Boolean |
GetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
ToString()
Declaration
public override readonly string ToString()
Returns
Type | Description |
---|---|
String |
Operators
| Improve this Doc View SourceEquality(CieXyChromaticityCoordinates, CieXyChromaticityCoordinates)
Compares two CieXyChromaticityCoordinates objects for equality.
Declaration
public static bool operator ==(CieXyChromaticityCoordinates left, CieXyChromaticityCoordinates right)
Parameters
Type | Name | Description |
---|---|---|
CieXyChromaticityCoordinates | left | The CieXyChromaticityCoordinates on the left side of the operand. |
CieXyChromaticityCoordinates | right | The CieXyChromaticityCoordinates on the right side of the operand. |
Returns
Type | Description |
---|---|
Boolean | True if the current left is equal to the |
Inequality(CieXyChromaticityCoordinates, CieXyChromaticityCoordinates)
Compares two CieXyChromaticityCoordinates objects for inequality
Declaration
public static bool operator !=(CieXyChromaticityCoordinates left, CieXyChromaticityCoordinates right)
Parameters
Type | Name | Description |
---|---|---|
CieXyChromaticityCoordinates | left | The CieXyChromaticityCoordinates on the left side of the operand. |
CieXyChromaticityCoordinates | right | The CieXyChromaticityCoordinates on the right side of the operand. |
Returns
Type | Description |
---|---|
Boolean | True if the current left is unequal to the |