Struct CieXyChromaticityCoordinates
Represents the coordinates of CIEXY chromaticity space.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.ColorSpaces.Conversion
Assembly: SixLabors.ImageSharp.dll
Syntax
public readonly struct CieXyChromaticityCoordinates : IEquatable<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) |
Fields
| Improve this Doc View SourceX
Gets the chromaticity X-coordinate.
Declaration
public readonly float X
Field Value
Type | Description |
---|---|
Single |
Remarks
Ranges usually from 0 to 1.
Y
Gets the chromaticity Y-coordinate
Declaration
public readonly float Y
Field 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(Object)
Declaration
public override readonly bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj |
Returns
Type | Description |
---|---|
Boolean |
Overrides
| Improve this Doc View SourceGetHashCode()
Declaration
public override readonly int GetHashCode()
Returns
Type | Description |
---|---|
Int32 |
Overrides
| Improve this Doc View SourceToString()
Declaration
public override readonly string ToString()
Returns
Type | Description |
---|---|
String |
Overrides
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 |