[][src]Struct colorspace::xyz::XYZ

#[repr(C)]pub struct XYZ<T> where
    T: Real
{ pub x: T, pub y: T, pub z: T, }

XYZ color type

Fields

x: Ty: Tz: T

Implementations

impl<T> XYZ<T> where
    T: Real
[src]

pub fn new(x: T, y: T, z: T) -> XYZ<T>[src]

pub fn from_scalar(a: T) -> XYZ<T>[src]

pub fn normalized(&self) -> XYZ<T>[src]

Returns a unit-luminance version of this color.

pub fn abs(&self) -> XYZ<T>[src]

impl<T> XYZ<T> where
    T: Real + One
[src]

pub fn from_chromaticity(c: XYY<T>) -> XYZ<T>[src]

Creates a new XYZ from the given xyY coordinates

pub fn from_xy(x: T, y: T) -> XYZ<T>[src]

pub fn normalized_y(&self) -> XYZ<T>[src]

Trait Implementations

impl<T> Add<T> for XYZ<T> where
    T: Real
[src]

Addition by a T

type Output = XYZ<T>

The resulting type after applying the + operator.

impl<T> Add<XYZ<T>> for XYZ<T> where
    T: Real
[src]

Addition operator

type Output = XYZ<T>

The resulting type after applying the + operator.

impl<T> AddAssign<XYZ<T>> for XYZ<T> where
    T: Real
[src]

impl<T> Bounded for XYZ<T> where
    T: Real
[src]

impl<T: Clone> Clone for XYZ<T> where
    T: Real
[src]

impl<T: Copy> Copy for XYZ<T> where
    T: Real
[src]

impl<T: Debug> Debug for XYZ<T> where
    T: Real
[src]

impl<T: Default> Default for XYZ<T> where
    T: Real
[src]

impl<T> Display for XYZ<T> where
    T: Real
[src]

impl<T> Div<T> for XYZ<T> where
    T: Real
[src]

Division by a T

type Output = XYZ<T>

The resulting type after applying the / operator.

impl<T> Div<XYZ<T>> for XYZ<T> where
    T: Real
[src]

Division operator

type Output = XYZ<T>

The resulting type after applying the / operator.

impl<T> From<XYY<T>> for XYZ<T> where
    T: Real
[src]

impl<T> From<XYZ<T>> for XYY<T> where
    T: Real
[src]

impl From<XYZ<f64>> for XYZf32[src]

impl<T> Index<usize> for XYZ<T> where
    T: Real
[src]

type Output = T

The returned type after indexing.

impl<T> IndexMut<usize> for XYZ<T> where
    T: Real
[src]

impl<T> Mul<T> for XYZ<T> where
    T: Real
[src]

Multiplication by a f32

type Output = XYZ<T>

The resulting type after applying the * operator.

impl<T> Mul<XYZ<T>> for XYZ<T> where
    T: Real
[src]

Multiplication operator

type Output = XYZ<T>

The resulting type after applying the * operator.

impl<T> Mul<XYZ<T>> for Matrix33<T> where
    T: Real
[src]

type Output = XYZ<T>

The resulting type after applying the * operator.

impl<T> Neg for XYZ<T> where
    T: Real
[src]

Unary negation

type Output = XYZ<T>

The resulting type after applying the - operator.

impl<T> One for XYZ<T> where
    T: Real
[src]

impl<T: PartialEq> PartialEq<XYZ<T>> for XYZ<T> where
    T: Real
[src]

impl<T: PartialOrd> PartialOrd<XYZ<T>> for XYZ<T> where
    T: Real
[src]

impl<T> StructuralPartialEq for XYZ<T> where
    T: Real
[src]

impl<T> Sub<T> for XYZ<T> where
    T: Real
[src]

Subtraction by a T

type Output = XYZ<T>

The resulting type after applying the - operator.

impl<T> Sub<XYZ<T>> for XYZ<T> where
    T: Real
[src]

Subtraction operator

type Output = XYZ<T>

The resulting type after applying the - operator.

impl Sum<XYZ<f32>> for XYZf32[src]

impl<T> Zero for XYZ<T> where
    T: Real
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for XYZ<T> where
    T: RefUnwindSafe

impl<T> Send for XYZ<T> where
    T: Send

impl<T> Sync for XYZ<T> where
    T: Sync

impl<T> Unpin for XYZ<T> where
    T: Unpin

impl<T> UnwindSafe for XYZ<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,