Struct CieXyz
- Namespace
- SixLabors.ImageSharp.ColorSpaces
- Assembly
- SixLabors.ImageSharp.dll
Represents an CIE XYZ 1931 color https://en.wikipedia.org/wiki/CIE_1931_color_space#Definition_of_the_CIE_XYZ_color_space
public readonly struct CieXyz : IEquatable<CieXyz>
- Implements
- Inherited Members
Constructors
CieXyz(Vector3)
Initializes a new instance of the CieXyz struct.
public CieXyz(Vector3 vector)
Parameters
vector
Vector3The vector representing the x, y, z components.
CieXyz(float, float, float)
Initializes a new instance of the CieXyz struct.
public CieXyz(float x, float y, float z)
Parameters
x
floatX is a mix (a linear combination) of cone response curves chosen to be nonnegative
y
floatThe y luminance component.
z
floatZ is quasi-equal to blue stimulation, or the S cone of the human eye.
Properties
X
Gets the X component. A mix (a linear combination) of cone response curves chosen to be nonnegative.
public float X { get; }
Property Value
Y
Gets the Y luminance component.
public float Y { get; }
Property Value
Z
Gets the Z component. Quasi-equal to blue stimulation, or the S cone response.
public float Z { get; }
Property Value
Methods
Equals(CieXyz)
public bool Equals(CieXyz other)
Parameters
other
CieXyz
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
ToVector3()
Returns a new Vector3 representing this instance.
public Vector3 ToVector3()
Returns
Operators
operator ==(CieXyz, CieXyz)
Compares two CieXyz objects for equality.
public static bool operator ==(CieXyz left, CieXyz right)
Parameters
left
CieXyzThe CieXyz on the left side of the operand.
right
CieXyzThe CieXyz on the right side of the operand.
Returns
- bool
True if the current left is equal to the
right
parameter; otherwise, false.
operator !=(CieXyz, CieXyz)
Compares two CieXyz objects for inequality.
public static bool operator !=(CieXyz left, CieXyz right)
Parameters
left
CieXyzThe CieXyz on the left side of the operand.
right
CieXyzThe CieXyz on the right side of the operand.
Returns
- bool
True if the current left is unequal to the
right
parameter; otherwise, false.