Struct OklabHue

Stores an Oklab-family hue in degrees.

struct OklabHue(T)
  
if (is(T == float) || is(T == double));

Use the normalized views when an algorithm needs a conventional angular interval. The stored value itself remains raw and may contain any number of complete revolutions.

T must be float or double. The natural .init value contains NaN and is not a usable hue.

Properties

NameTypeDescription
positiveDegrees[get] TReturns the equivalent hue from 0 degrees inclusive to 360 degrees exclusive.
radians[get] TReturns the raw stored hue converted to radians.
rawDegrees[get] TReturns the stored degree value without normalization.
signedDegrees[get] TReturns the equivalent hue above -180 degrees and at most 180 degrees.

Methods

NameDescription
fromDegrees (value) Constructs an Oklab-family hue from a raw degree value.

Aliases

NameDescription
Scalar Scalar component type.