FCoordinate2d

At the time of writing, there is no double-precision 2D vector available hence this custom type.

Choose your operating system:

Windows

macOS

Linux

References

Module

ColorManagement

Header

/Engine/Source/Runtime/ColorManagement/Public/ColorSpace.h

Include

#include "ColorSpace.h"

Syntax

struct FCoordinate2d

Remarks

At the time of writing, there is no double-precision 2D vector available hence this custom type.

Variables

Name Description

Public variable

double

 

x

Coordinate's x component (lowercase to follow the CIE xy-XYZ convention).

Public variable

double

 

y

Coordinate's y component (lowercase to follow the CIE xy-XYZ convention).

Constructors

Name Description

Public function

FCoordinate2d()

Constructor

Public function

FCoordinate2d

(
    FVector2D Coordinates
)

Constructor

Public function

FCoordinate2d

(
    double Inx,
    double Iny
)

Constructor

Functions

Name Description

Public function Const

bool

 

Equals

(
    const FCoordinate2d& V,
    float Tolerance
)

Convert to the CIE xyY colorspace coordinates as an FVector3d.

Public function

bool

 

Serialize

(
    FArchive& Ar
)

Public function Const

FVector2D

 

ToVector2D()

Convert to FVector2D.

Public function Const

FVector3d

 

ToXYZ

(
    double LuminanceY
)

Convert to CIE XYZ tristimulus values with a luminance value (default to 1.0).

Public function Const

FVector3d

 

ToYxy

(
    double LuminanceY
)

Convert to CIE Yxy with a luminance value (default to 1.0).

Operators

Name Description

Public function

double &

 

operator[]

(
    int32 Index
)

Gets specific component of the coordinates.

Public function Const

const double...

 

operator[]

(
    int32 Index
)

Gets specific component of the coordinate.

Public function Const

bool

 

operator==

(
    const FCoordinate2d& V
)

Compares these coordinates against another pair for equality.