Table of Contents

Struct CieXyz

Namespace
SixLabors.ImageSharp.ColorSpaces
Assembly
SixLabors.ImageSharp.dll
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 Vector3

The 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 float

X is a mix (a linear combination) of cone response curves chosen to be nonnegative

y float

The y luminance component.

z float

Z 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. A value usually ranging between 0 and 1.

public float X { get; }

Property Value

float

Y

Gets the Y luminance component. A value usually ranging between 0 and 1.

public float Y { get; }

Property Value

float

Z

Gets the Z component. Quasi-equal to blue stimulation, or the S cone response. A value usually ranging between 0 and 1.

public float Z { get; }

Property Value

float

Methods

Equals(CieXyz)

public bool Equals(CieXyz other)

Parameters

other CieXyz

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

ToVector3()

Returns a new Vector3 representing this instance.

public Vector3 ToVector3()

Returns

Vector3

The Vector3.

Operators

operator ==(CieXyz, CieXyz)

Compares two CieXyz objects for equality.

public static bool operator ==(CieXyz left, CieXyz right)

Parameters

left CieXyz

The CieXyz on the left side of the operand.

right CieXyz

The 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 CieXyz

The CieXyz on the left side of the operand.

right CieXyz

The CieXyz on the right side of the operand.

Returns

bool

True if the current left is unequal to the right parameter; otherwise, false.