Table of Contents

Struct CieXyChromaticityCoordinates

Namespace
SixLabors.ImageSharp.ColorProfiles
Assembly
SixLabors.ImageSharp.dll

Represents the coordinates of CIEXY chromaticity space.

public readonly struct CieXyChromaticityCoordinates : IEquatable<CieXyChromaticityCoordinates>
Implements
Inherited Members

Constructors

CieXyChromaticityCoordinates(float, float)

Initializes a new instance of the CieXyChromaticityCoordinates struct.

public CieXyChromaticityCoordinates(float x, float y)

Parameters

x float

Chromaticity coordinate x (usually from 0 to 1)

y float

Chromaticity coordinate y (usually from 0 to 1)

Properties

X

Gets the chromaticity X-coordinate.

public float X { get; }

Property Value

float

Remarks

Ranges usually from 0 to 1.

Y

Gets the chromaticity Y-coordinate

public float Y { get; }

Property Value

float

Remarks

Ranges usually from 0 to 1.

Methods

Equals(CieXyChromaticityCoordinates)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(CieXyChromaticityCoordinates other)

Parameters

other CieXyChromaticityCoordinates

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

ToString()

Returns the fully qualified type name of this instance.

public override string ToString()

Returns

string

The fully qualified type name.

Operators

operator ==(CieXyChromaticityCoordinates, CieXyChromaticityCoordinates)

Compares two CieXyChromaticityCoordinates objects for equality.

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

Parameters

left CieXyChromaticityCoordinates

The CieXyChromaticityCoordinates on the left side of the operand.

right CieXyChromaticityCoordinates

The CieXyChromaticityCoordinates on the right side of the operand.

Returns

bool

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

operator !=(CieXyChromaticityCoordinates, CieXyChromaticityCoordinates)

Compares two CieXyChromaticityCoordinates objects for inequality

public static bool operator !=(CieXyChromaticityCoordinates left, CieXyChromaticityCoordinates right)

Parameters

left CieXyChromaticityCoordinates

The CieXyChromaticityCoordinates on the left side of the operand.

right CieXyChromaticityCoordinates

The CieXyChromaticityCoordinates on the right side of the operand.

Returns

bool

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