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
Inherited Members
Namespace: SixLabors.ImageSharp.ColorSpaces
Assembly: SixLabors.ImageSharp.dll
Syntax
public readonly struct CieXyz : IEquatable<CieXyz>
Constructors
| Edit this page View SourceCieXyz(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. |
CieXyz(float, float, float)
Initializes a new instance of the CieXyz struct.
Declaration
public CieXyz(float x, float y, float z)
Parameters
Type | Name | Description |
---|---|---|
float | x | X is a mix (a linear combination) of cone response curves chosen to be nonnegative |
float | y | The y luminance component. |
float | z | Z is quasi-equal to blue stimulation, or the S cone of the human eye. |
Properties
| Edit this page View SourceX
Gets the X component. A mix (a linear combination) of cone response curves chosen to be nonnegative.
Declaration
public float X { get; }
Property Value
Type | Description |
---|---|
float |
Y
Gets the Y luminance component.
Declaration
public float Y { get; }
Property Value
Type | Description |
---|---|
float |
Z
Gets the Z component. Quasi-equal to blue stimulation, or the S cone response.
Declaration
public float Z { get; }
Property Value
Type | Description |
---|---|
float |
Methods
| Edit this page View SourceEquals(CieXyz)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(CieXyz other)
Parameters
Type | Name | Description |
---|---|---|
CieXyz | 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
| Edit this page View SourceToVector3()
Returns a new Vector3 representing this instance.
Declaration
public Vector3 ToVector3()
Returns
Type | Description |
---|---|
Vector3 | The Vector3. |
Operators
| Edit this page View Sourceoperator ==(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 |
---|---|
bool | True if the current left is equal to the |
operator !=(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 |
---|---|
bool | True if the current left is unequal to the |