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
| Edit this page View SourceCieXyChromaticityCoordinates(float, float)
Initializes a new instance of the CieXyChromaticityCoordinates struct.
Declaration
public CieXyChromaticityCoordinates(float x, float y)
Parameters
Type | Name | Description |
---|---|---|
float | x | Chromaticity coordinate x (usually from 0 to 1) |
float | y | Chromaticity coordinate y (usually from 0 to 1) |
Properties
| Edit this page View SourceX
Gets the chromaticity X-coordinate.
Declaration
public float X { get; }
Property Value
Type | Description |
---|---|
float |
Remarks
Ranges usually from 0 to 1.
Y
Gets the chromaticity Y-coordinate
Declaration
public float Y { get; }
Property Value
Type | Description |
---|---|
float |
Remarks
Ranges usually from 0 to 1.
Methods
| Edit this page View SourceEquals(CieXyChromaticityCoordinates)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(CieXyChromaticityCoordinates other)
Parameters
Type | Name | Description |
---|---|---|
CieXyChromaticityCoordinates | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
bool | true if the current object is equal to the |
Equals(object?)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current instance. |
Returns
Type | Description |
---|---|
bool | true if |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
| Edit this page View SourceToString()
Returns the fully qualified type name of this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | The fully qualified type name. |
Overrides
Operators
| Edit this page View Sourceoperator ==(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 |
---|---|
bool | True if the current left is equal to the |
operator !=(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 |
---|---|
bool | True if the current left is unequal to the |