Struct siege_color::cie1931::Cie1931
[−]
[src]
pub struct Cie1931<I: Illuminant> { pub v: Vec3<f32>, // some fields omitted }
CIE 1931 XYZ colorspace at the D65 whitepoint Normalized to Y=1.0 (Not Y=100 !!!)
Fields
v: Vec3<f32>
Methods
impl<I: Illuminant> Cie1931<I>
[src]
pub fn new(x: f32, y: f32, z: f32) -> Cie1931<I>
[src]
pub fn x(&self) -> f32
[src]
pub fn y(&self) -> f32
[src]
pub fn z(&self) -> f32
[src]
pub fn get_luminance(&self) -> f32
[src]
pub fn set_luminance(&mut self, luminance: f32)
[src]
Trait Implementations
impl<I: Debug + Illuminant> Debug for Cie1931<I>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<I: Clone + Illuminant> Clone for Cie1931<I>
[src]
fn clone(&self) -> Cie1931<I>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl From<Cie1931<D65>> for Cie1931<D50>
[src]
impl From<Cie1931<D50>> for Cie1931<D65>
[src]
impl From<Cie1931<D65>> for Cie1931xyY
[src]
fn from(input: Cie1931<D65>) -> Cie1931xyY
[src]
Performs the conversion.
impl From<Cie1931xyY> for Cie1931<D65>
[src]
fn from(input: Cie1931xyY) -> Cie1931<D65>
[src]
Performs the conversion.
impl From<Cie1931<D65>> for LinearSrgb
[src]
fn from(input: Cie1931<D65>) -> LinearSrgb
[src]
Performs the conversion.
impl From<LinearSrgb> for Cie1931<D65>
[src]
fn from(input: LinearSrgb) -> Cie1931<D65>
[src]
Performs the conversion.