Struct exoquant::Colorf [] [src]

pub struct Colorf {
    pub r: f64,
    pub g: f64,
    pub b: f64,
    pub a: f64,
}

A color with floating point channel components.

Used for all internal processing.

It implements Mul, Div, Add and Sub operators that apply each operation component wise to each channel in turn.

Fields

Methods

impl Colorf
[src]

Returns a Colorf with all channel components set to zero.

Returns the dot product of two Colorfs.

Returns the magnitude (vector length) of a Colorf.

Returns a new Colorf with each color component raised to the given power.

Trait Implementations

impl Default for Colorf
[src]

Returns the "default value" for a type. Read more

impl Copy for Colorf
[src]

impl Clone for Colorf
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Colorf
[src]

Formats the value using the given formatter.

impl Add for Colorf
[src]

The resulting type after applying the + operator

The method for the + operator

impl Add<f64> for Colorf
[src]

The resulting type after applying the + operator

The method for the + operator

impl AddAssign for Colorf
[src]

The method for the += operator

impl Sub for Colorf
[src]

The resulting type after applying the - operator

The method for the - operator

impl Mul<f64> for Colorf
[src]

The resulting type after applying the * operator

The method for the * operator

impl MulAssign<f64> for Colorf
[src]

The method for the *= operator

impl Mul for Colorf
[src]

The resulting type after applying the * operator

The method for the * operator

impl Div for Colorf
[src]

The resulting type after applying the / operator

The method for the / operator