Struct kolor_64::details::conversion::LinearColorConversion
source · pub struct LinearColorConversion { /* private fields */ }
Expand description
A transformation from one linear color space to another.
Implementations§
source§impl LinearColorConversion
impl LinearColorConversion
pub fn input_space(&self) -> ColorSpace
pub fn output_space(&self) -> ColorSpace
pub fn convert(&self, color: Vec3) -> Vec3
pub fn matrix(&self) -> Mat3
pub fn new(src: ColorSpace, dst: ColorSpace) -> Self
Trait Implementations§
source§impl Clone for LinearColorConversion
impl Clone for LinearColorConversion
source§fn clone(&self) -> LinearColorConversion
fn clone(&self) -> LinearColorConversion
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LinearColorConversion
impl Debug for LinearColorConversion
source§impl PartialEq<LinearColorConversion> for LinearColorConversion
impl PartialEq<LinearColorConversion> for LinearColorConversion
source§fn eq(&self, other: &LinearColorConversion) -> bool
fn eq(&self, other: &LinearColorConversion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for LinearColorConversion
impl StructuralPartialEq for LinearColorConversion
Auto Trait Implementations§
impl RefUnwindSafe for LinearColorConversion
impl Send for LinearColorConversion
impl Sync for LinearColorConversion
impl Unpin for LinearColorConversion
impl UnwindSafe for LinearColorConversion
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more