Struct CieXyz
Represents an CIE XYZ 1931 color https://en.wikipedia.org/wiki/CIE_1931_color_space#Definition_of_the_CIE_XYZ_color_space
Implements
Namespace: SixLabors.ImageSharp.ColorSpaces
Assembly: SixLabors.ImageSharp.dll
Syntax
public readonly struct CieXyz
Constructors
| Improve this Doc View SourceCieXyz(Single, Single, Single)
Initializes a new instance of the CieXyz struct.
Declaration
public CieXyz(float x, float y, float z)
Parameters
Type | Name | Description |
---|---|---|
Single | x | X is a mix (a linear combination) of cone response curves chosen to be nonnegative |
Single | y | The y luminance component. |
Single | z | Z is quasi-equal to blue stimulation, or the S cone of the human eye. |
CieXyz(Vector3)
Initializes a new instance of the CieXyz struct.
Declaration
public CieXyz(Vector3 vector)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | vector | The vector representing the x, y, z components. |
Properties
| Improve this Doc View SourceX
Gets the X component. A mix (a linear combination) of cone response curves chosen to be nonnegative.
Declaration
public readonly float X { get; }
Property Value
Type | Description |
---|---|
Single |
Y
Gets the Y luminance component.
Declaration
public readonly float Y { get; }
Property Value
Type | Description |
---|---|
Single |
Z
Gets the Z component. Quasi-equal to blue stimulation, or the S cone response.
Declaration
public readonly float Z { get; }
Property Value
Type | Description |
---|---|
Single |
Methods
| Improve this Doc View SourceEquals(CieXyz)
Declaration
public readonly bool Equals(CieXyz other)
Parameters
Type | Name | Description |
---|---|---|
CieXyz | 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 |
ToVector3()
Returns a new
Declaration
public readonly Vector3 ToVector3()
Returns
Type | Description |
---|---|
Vector3 | The |
Operators
| Improve this Doc View SourceEquality(CieXyz, CieXyz)
Compares two CieXyz objects for equality.
Declaration
public static bool operator ==(CieXyz left, CieXyz right)
Parameters
Type | Name | Description |
---|---|---|
CieXyz | left | The CieXyz on the left side of the operand. |
CieXyz | right | The CieXyz on the right side of the operand. |
Returns
Type | Description |
---|---|
Boolean | True if the current left is equal to the |
Inequality(CieXyz, CieXyz)
Compares two CieXyz objects for inequality.
Declaration
public static bool operator !=(CieXyz left, CieXyz right)
Parameters
Type | Name | Description |
---|---|---|
CieXyz | left | The CieXyz on the left side of the operand. |
CieXyz | right | The CieXyz on the right side of the operand. |
Returns
Type | Description |
---|---|
Boolean | True if the current left is unequal to the |